Redigera

Dela via


TextPointer.GetTextRunLength(LogicalDirection) Method

Definition

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

public:
 int GetTextRunLength(System::Windows::Documents::LogicalDirection direction);
public int GetTextRunLength (System.Windows.Documents.LogicalDirection direction);
member this.GetTextRunLength : System.Windows.Documents.LogicalDirection -> int
Public Function GetTextRunLength (direction As LogicalDirection) As Integer

Parameters

direction
LogicalDirection

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

Returns

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.

Remarks

Any of the following is considered to be a symbol:

Applies to