TextSource.GetPrecedingText(Int32) メソッド

定義

指定した TextSource 位置の直前のテキスト範囲を取得します。

public:
 abstract System::Windows::Media::TextFormatting::TextSpan<System::Windows::Media::TextFormatting::CultureSpecificCharacterBufferRange ^> ^ GetPrecedingText(int textSourceCharacterIndexLimit);
public abstract System.Windows.Media.TextFormatting.TextSpan<System.Windows.Media.TextFormatting.CultureSpecificCharacterBufferRange> GetPrecedingText (int textSourceCharacterIndexLimit);
abstract member GetPrecedingText : int -> System.Windows.Media.TextFormatting.TextSpan<System.Windows.Media.TextFormatting.CultureSpecificCharacterBufferRange>
Public MustOverride Function GetPrecedingText (textSourceCharacterIndexLimit As Integer) As TextSpan(Of CultureSpecificCharacterBufferRange)

パラメーター

textSourceCharacterIndexLimit
Int32

テキストの取得を停止する文字インデックス位置です。

戻り値

TextSpan<CultureSpecificCharacterBufferRange>

textSourceCharacterIndexLimit の直前のテキスト範囲を表す CultureSpecificCharacterBufferRange 値。

注釈

直前のテキスト範囲textSourceCharacterIndexLimitにインライン オブジェクトや非表示の実行などのテキストが含まれていない場合、このメソッドはGetPrecedingTextCultureSpecificCharacterBufferRangeを返します。

このメソッドは、前に値がない場合、長さ 0 のテキストスパンを textSourceCharacterIndexLimit返します。

適用対象