TextPointer.GetTextRunLength(LogicalDirection) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在の TextPointer と次の非テキスト記号の間の Unicode 文字の数を、指定された論理方向で返します。
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
パラメーター
- direction
- LogicalDirection
文字数をカウントする論理的な方向を指定する LogicalDirection 値の 1 つ。
返品
現在の TextPointer と次の非テキスト記号の間の Unicode 文字の数。 隣接するテキストがない場合、この数値は 0 になることがあります。
注釈
次のいずれかがシンボルと見なされます。
TextElement要素の開始タグまたは終了タグ。
InlineUIContainerまたはBlockUIContainerに含まれるUIElement要素。 このような UIElement は常に 1 つのシンボルとしてカウントされます。 UIElement に含まれる追加のコンテンツまたは要素はシンボルとしてカウントされません。
テキスト Run 要素内の 16 ビット Unicode 文字。