Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CharacterGrouping class

Applies to Windows and Windows Phone

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

Syntax


var characterGrouping = characterGroupings.getAt();

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The CharacterGrouping class has these types of members:

Properties

The CharacterGrouping class has these properties.

PropertyAccess typeDescription

First

Read-onlyGets the first item that appears in the grouping under this index.

Label

Read-onlyGets the label that is associated with this index.

 

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;
}

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization.Collation
Windows::Globalization::Collation [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft