ITextSelection::GetType method

Gets the type of text selection.

Syntax


StdMETHODIMP GetType(
  long *pType
);

Parameters

pType

Type: long*

The selection type. The method returns pType with one of the values in the following table.

Selection typeValueMeaning
tomNoSelection0No selection and no insertion point.
tomSelectionIP1Insertion point.
tomSelectionNormal2Single nondegenerate range.
tomSelectionFrame3Frame.
tomSelectionColumn4Table column.
tomSelectionRow5Table rows.
tomSelectionBlock6Block selection.
tomSelectionInlineShape7Picture.
tomSelectionShape8Shape.

 

Return value

Type: StdMETHODIMP

The method returns an HRESULT value. If the method succeeds, it returns S_OK. If pType is null, the method fails and it returns E_INVALIDARG.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

Reference
ITextSelection
Conceptual
Text Object Model

 

 

Community Additions

ADD
Show:
© 2014 Microsoft