TextPointer.GetTextRunLength(LogicalDirection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
An opening or closing tag for the TextElement element.
A UIElement element contained in an InlineUIContainer or BlockUIContainer. Note that such a UIElement is always counted as exactly one symbol; any additional content or elements contained by the UIElement are not counted as symbols.
A 16-bit Unicode character inside of a text Run element.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기