System.Windows.Forms.HtmlWindowCollection Class

Represents the windows contained within another System.Windows.Forms.HtmlWindow.

See Also: HtmlWindowCollection Members

Syntax

public class HtmlWindowCollection : ICollection

Remarks

An HTML document may consist of a FRAMESET that defines multiple fixed FRAME objects, each of which contains its own HTML page. Alternatively, a document may contain a number of IFRAME objects, which can position documents arbitrarily inside of other documents. FRAME objects and IFRAME objects are represented at their top-most level by an System.Windows.Forms.HtmlWindowCollection, which contains elements of type System.Windows.Forms.HtmlWindow.

System.Windows.Forms.HtmlWindowCollection supports the IEnumerator interface so that it can be used in loop constructs. It also defines an Item method, which allows access to the elements of the collection either via a method call or using standard array syntax.

If you create new windows with the HtmlWindow.Open(string, string, string, bool) or HtmlWindow.OpenNew(string, string) methods, and the documents hosted by these windows contain FRAME or IFRAME elements, that these elements will appear in the System.Windows.Forms.HtmlWindowCollection of the parent page.

For more information on frames, see the documentation for the HtmlWindow.Frames property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0