PROPERTY

StringInfo.LengthInTextElements

Counts text elements using Unicode segmentation rules.

Formal Syntax & Structure

csharp syntaxcsharp
new StringInfo(text).LengthInTextElements

Working Example

Example Snippetcsharp
int count = new System.Globalization.StringInfo("e\u0301").LengthInTextElements;
C# & .NET Reference