Skip to main content

Windows Dev Center

CharacterGrouping class

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();

public sealed class CharacterGrouping

Public NotInheritable Class CharacterGrouping

public ref class CharacterGrouping sealed 

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 ( device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

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

See also

Object