Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  Contains(element)
element class : Contains(element) method

Description

Gets the value that indicates whether the specified element is contained within the invoker element.

Syntax

elementInstance.Contains(element targetElement)

Arguments

ClassNameDescription
elementtargetElementAn instance of the element type.

Return value

ClassNameDescription
boolNoneThe value that indicates whether the specified element is contained within the invoker element.

Sample code

//anyElement and targetElement are any instance of element type.

bool contain = anyElement.Contains(targetElement);

Notes

It's a wrapper of the MSHTML.IHTMLElement.contains(IHTMLElement).

Links for reference

Copyright © Rice All rights reserved.