Click or drag to resize
LocalisedDisplayNameAttributeForceMonoSortOrder Method
Adds leading text to the display name to force the correct sort order in property grids.

Namespace: VirtualRadar.Localisation
Assembly: VirtualRadar.Localisation (in VirtualRadar.Localisation.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void ForceMonoSortOrder(
	string categoryPrefix,
	int displayOrder,
	int totalDisplayItems
)

Parameters

categoryPrefix
Type: SystemString
displayOrder
Type: SystemInt32
totalDisplayItems
Type: SystemInt32
Remarks
The normal method for sorting properties in a grid with PropertySortMode.Category, which is to create a type descriptor for the owning object and call Sort on the PropertyDescriptorCollection it creates, does not work under Mono. This will work for both .NET and Mono.
See Also