Freigeben über


IHTMLTxtRangeCollection interface

The IHTMLTxtRangeCollection interface provides access to a collection of TextRange objects. The IHTMLTxtRangeCollection interface is returned from the IHTMLSelectionObject2::createRangeCollection method of the selection object.

Members

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

  • Methods
  • Properties

Methods

The IHTMLTxtRangeCollection interface has these methods.

Method Description
item

Retrieves an object from a TextRange collection.

 

Properties

The IHTMLTxtRangeCollection interface has these properties.

Property Description

length

Sets or retrieves the number of objects in a collection.

 

Remarks

Microsoft Internet Explorer 5.5 does not provide a multiple selection mechanism and returns a collection consisting of a single TextRange object.

Host applications can provide a multiple selection mechanism and can return a collection of TextRange objects that represents discontinuous selections.

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

IHTMLSelectionObject2::createRangeCollection

ISelectionServices