Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
item
Collapse the table of content
Expand the table of content

item method

Retrieves an object from a TextRectangle collection.

Syntax


 retVal = object.item(pvarIndex);

Parameters

pvarIndex [in]

Type: VARIANT

Pointer to a VARIANT of type VT_I4 or VT_BSTR that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching IHTMLDOMAttribute2::name or IHTMLElement::id properties are retrieved, and a collection is returned if more than one match is made.

Standards information

There are no standards that apply here.

Remarks

Always check the IDispatch pointer returned by this call, even if the method returns S_OK. If the value of the pointer is NULL, the element was not found and the call was not successful.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft