CharacterGrouping CharacterGrouping CharacterGrouping CharacterGrouping CharacterGrouping Class

Definition

A container for character group information. Characters are grouped in an index that enables an application to determine where the grouping boundaries are.

public : sealed class CharacterGrouping
struct winrt::Windows::Globalization::Collation::CharacterGrouping
public sealed class CharacterGrouping
Public NotInheritable Class CharacterGrouping
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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

First First First First First

Gets the first item that appears in the grouping under this index.

Label Label Label Label Label

Gets the label that is associated with this index.