ITextDocument2::GetSelection2 method (tom.h)
Gets the active selection.
Syntax
HRESULT GetSelection2(
[out, retval] ITextSelection2 **ppSel
);
Parameters
[out, retval] ppSel
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
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | tom.h |
DLL | Msftedit.dll |