RichEditTextRange.GetIndex(TextRangeUnit) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.