ComponentOne Bitmap for WPF
GetTextBeforePosition Method (TextAnalysisSource)

C1.WPF.DX.4 Assembly > C1.Util.DX.DirectWrite Namespace > TextAnalysisSource Interface : GetTextBeforePosition Method
The position immediately after the last position of the block of text to obtain.
Gets a block of text immediately preceding the specified position.
Syntax
'Declaration
 
Function GetTextBeforePosition( _
   ByVal textPosition As System.Integer _
) As System.String
System.string GetTextBeforePosition( 
   System.int textPosition
)

Parameters

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

Return Value

text immediately preceding the specified position
Remarks
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.
See Also

Reference

TextAnalysisSource Interface
TextAnalysisSource Members