[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextAnalysisSource.GetTextBeforePosition

GetTextBeforePosition Method

GetTextBeforePosition(int)

Gets a block of text immediately preceding the specified position.

Declaration
string GetTextBeforePosition(int textPosition)
Parameters
Type Name Description
int textPosition

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

Returns
Type Description
string

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.