Freigeben über


IHTMLSelectionObject2 interface

The IHTMLSelectionObject2 interface provides methods for the selection object representing the active selection. It provides support for multiple and custom selection that are optionally implemented by the host application.

Members

The IHTMLSelectionObject2 interface inherits from the IDispatch interface. IHTMLSelectionObject2 also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLSelectionObject2 interface has these methods.

Method Description
createRangeCollection

Creates a TextRange object collection from the current selection.

 

Properties

The IHTMLSelectionObject2 interface has these properties.

Property Description

typeDetail

Retrieves the name of the selection type.

 

Remarks

A host application provides a custom selection mechanism by implementing the ISelectionServicesListener interface.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

Reference

ISelectionServicesListener

IHTMLSelectionObject