SelectRange method

Selects the specified range and scrolls the selection into view.

Syntax


HRESULT retVal = object.SelectRange(pStart, pEnd, eType);

Parameters

pStart [in]

Type: IMarkupPointer

A pointer to an IMarkupPointer interface that marks the start of the selection.

pEnd [in]

Type: IMarkupPointer

A pointer to an IMarkupPointer interface that marks the end of the selection.

eType [in]

Type: SELECTION_TYPE

A selection type from the SELECTION_TYPE enumeration.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Only SELECTION_TYPE_Caret and SELECTION_TYPE_Control are allowed in an editable context.

 

 

Show: