Windows apps
Collapse the table of content
Expand the table of content
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.

TextPointer.GetTextRunLength Method (LogicalDirection)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the number of Unicode characters between the current TextPointer and the next non-text symbol, in the specified logical direction.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public int GetTextRunLength(
	LogicalDirection direction
)

Parameters

direction
Type: System.Windows.Documents.LogicalDirection

One of the LogicalDirection values that specifies the logical direction in which to count the number of characters.

Return Value

Type: System.Int32

The number of Unicode characters between the current TextPointer and the next non-text symbol. This number may be 0 if there is no adjacent text.

Any of the following is considered to be a symbol:

.NET Framework
Available since 3.0
Return to top
Show:
© 2018 Microsoft