LocalisedDisplayNameAttributeForceMonoSortOrder Method |
Adds leading text to the display name to force the correct sort order in property grids.
Namespace: VirtualRadar.LocalisationAssembly: 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
)
Public Sub ForceMonoSortOrder (
categoryPrefix As String,
displayOrder As Integer,
totalDisplayItems As Integer
)
public:
void ForceMonoSortOrder(
String^ categoryPrefix,
int displayOrder,
int totalDisplayItems
)
member ForceMonoSortOrder :
categoryPrefix : string *
displayOrder : int *
totalDisplayItems : int -> unit
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