GetSelection2 method

ITextDocument2::GetSelection2 method

Gets the active selection.

Syntax


HRESULT GetSelection2(
  [out, retval] ITextSelection2 **ppSel
);

Parameters

ppSel [out, retval]

Type: ITextSelection2**

The active selection. This parameter is NULL if the rich edit control is not in-place active.

Return value

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

ITextDocument2

 

 

Show:
© 2016 Microsoft