Delen 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:
 virtual int GetIndex(TextRangeUnit unit) = GetIndex;
int GetIndex(TextRangeUnit const& unit);
public int GetIndex(TextRangeUnit unit);
function getIndex(unit)
Public Function GetIndex (unit As TextRangeUnit) As Integer

Parameters

unit
TextRangeUnit

The text unit that is indexed.

Returns

Int32

int

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

Implements

Applies to