Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

getSelection method

Returns an object that represents the current selection of the document.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 6.6.1Internet Explorer 9

Syntax


HRESULT retVal = object.getSelection(ppIHTMLSelection);

Parameters

ppIHTMLSelection [out, retval]

Type: IHTMLSelection

An HTMLSelection object that represents the current selection, if any.

Return value

Type: HRESULT

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

Standards information

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.