Method CompareByLabel
CompareByLabel(IPropertyGridItem, IPropertyGridItem)
Compares two specified IPropertyGridItem objects by their labels and returns an integer that indicates their relative position in the sort order.
public static int CompareByLabel(IPropertyGridItem x, IPropertyGridItem y)
Parameters
xIPropertyGridItemFirst item to compare.
yIPropertyGridItemSecond item to compare.
Returns
- int
A 32-bit signed integer that indicates the relationship between the two comparands. Result value less than 0 means that
xprecedesyin the sort order. Result value equal to 0 meansxoccurs in the same position asyin the sort order. Result value greater than 0 means thatxfollowsyin the sort order.