Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
CharacterGrouping Class
Definition
- Namespace:
- Windows.Globalization.Collation
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A container for character group information. Characters are grouped in an index that enables an application to determine where the grouping boundaries are.
public ref class CharacterGrouping sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CharacterGrouping final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CharacterGrouping
Public NotInheritable Class CharacterGrouping
- Inheritance
- Attributes
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows 10 (introduced in 10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Examples
// Create a CharacterGroupings object for the default collation.
var characterGroupings = new Windows.Globalization.Collation.CharacterGroupings();
// Get the number of CharacterGrouping objects.
var size = characterGroupings.size;
if (size > 0) {
// Get the first characterGrouping.
var characterGrouping = characterGroupings.getAt(0);
// Get the first item in this characterGrouping.
var first = characterGrouping.first;
// Get the label of the first item in this characterGrouping.
var label = characterGrouping.label;
}
Properties
| Name | Description |
|---|---|
| First |
Gets the first item that appears in the grouping under this index. |
| Label |
Gets the label that is associated with this index. |
Applies to
Feedback
Was this page helpful?
