Compartilhar via


IHTMLControlRange interface

Contains a range of control type elements that is used for control selection; and represents an array of controls that can be operated on as a group.

Members

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

  • Methods
  • Properties

Methods

The IHTMLControlRange interface has these methods.

Method Description
execCommand

Executes a command on the current document, current selection, or the given range.

execCommandShowHelp

Displays help information for the given command identifier.

item

Retrieves an object from a controlRange collection.

queryCommandEnabled

Returns a Boolean value that indicates whether a specified command can be successfully executed using IHTMLControlRange::execCommand, given the current state of the document.

queryCommandIndeterm

Returns a Boolean value that indicates whether the specified command is in the indeterminate state.

queryCommandState

Returns a Boolean value that indicates the current state of the command.

queryCommandSupported

Returns a Boolean value that indicates whether the current command is supported on the current range.

queryCommandText

Retrieves the string associated with a command.

queryCommandValue

Returns the current value of the document, range, or current selection for the given command.

scrollIntoView

Causes the object to scroll into view, aligning it either at the top or bottom of the window.

select

Makes the selection equal to the current object.

 

Properties

The IHTMLControlRange interface has these properties.

Property Description

length

Sets or retrieves the number of objects in a collection.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch