Share via


OnChangeType method

Called by the editor when a selection's type changes.

Syntax

HRESULT retVal = object.OnChangeType(eType, pIListener);

Parameters

Return value

Type: HRESULT

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

Remarks

The ISelectionServices::SetSelectionType method changes the selection type and will trigger a call to this method.

Use this method to implement any custom processing that should take place when a selection is initiated or changes type.

See also

ISegmentList::GetType