共用方式為


getSelection method

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

 

Syntax

HRESULT retVal = object.getSelection(ppIHTMLSelection);

Parameters

Return value

Type: HRESULT

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

Standards information