System.Globalization.StringInfo.SubstringByTextElements Method

Retrieves a substring of text elements from the current System.Globalization.StringInfo object starting from a specified text element and continuing through the last text element.

Syntax

public string SubstringByTextElements (int startingTextElement)

Parameters

startingTextElement
The zero-based index of a text element in this System.Globalization.StringInfo object.

Returns

A substring of text elements in this System.Globalization.StringInfo object, starting from the text element index specified by the startingTextElement parameter and continuing through the last text element in this object.

Remarks

Consider a string that consists of five text elements, indexed from 0 through 4. If the startingTextElement parameter is 1, the StringInfo.SubstringByTextElements(int) method returns a substring that consists of the text elements for which the indexes are 1, 2, 3, and 4.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0