Bitmap for WPF
GetTextBeforePosition メソッド (TextAnalysisSource)

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.DirectWrite 名前空間 > TextAnalysisSource インターフェース : GetTextBeforePosition メソッド
The position immediately after the last position of the block of text to obtain.
Gets a block of text immediately preceding the specified position.
シンタックス
'宣言
 
Function GetTextBeforePosition( _
   ByVal textPosition As System.Integer _
) As System.String
System.string GetTextBeforePosition( 
   System.int textPosition
)

パラメータ

textPosition
The position immediately after the last position of the block of text to obtain.

戻り値の型

text immediately preceding the specified position
解説
NULL indicates no chunk available at the specified position, either because textPosition equals 0, textPosition is greater than the entire text content length, or the queried position is not mapped into the application's backing store. Although applications can implement sparse textual content that maps only part of the backing store, the application must map any text that is in the range passed to any analysis functions.
参照

TextAnalysisSource インターフェース
TextAnalysisSource メンバ