0 out of 1 rated this helpful - Rate this topic

IHTMLElement::contains Method

Checks whether the given element is contained within the object.

Syntax


HRESULT contains(
    IHTMLElement *pChild,
    VARIANT_BOOL *pfResult
);

Parameters

pChild
[in] Pointer to an IHTMLElement interface that specifies the element to check.
pfResult
[out, retval] Pointer to a VARIANT_BOOL that receives one of the following possible values:
VARIANT_TRUE
The element is contained within the object.
VARIANT_FALSE
The element is not contained within the object.

Return Value

Returns S_OK if successful, or an error value otherwise.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ