[]
Gets a block of text immediately preceding the specified position.
string GetTextBeforePosition(int textPosition)
Type | Name | Description |
---|---|---|
int | textPosition | The position immediately after the last position of the block of text to obtain. |
Type | Description |
---|---|
string | 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.