Share via


RichEditTextRange.GetIndex(TextRangeUnit) Method

Definition

Retrieves the story index of the text unit (word, line, sentence, paragraph, and so on) at the starting character position of the text range.

public int GetIndex(TextRangeUnit unit);

Parameters

unit
TextRangeUnit

The text unit that is indexed.

Returns

Int32

The index value. The value is zero if unit does not exist.

Implements

Applies to