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

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

返品

CultureSpecificCharacterBufferRange直前のテキストスパンを表すtextSourceCharacterIndexLimit値。

注釈

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

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

適用対象