System.Windows.Forms.HtmlElement.Children Property

Gets an System.Windows.Forms.HtmlElementCollection of all children of the current element.

Syntax

public HtmlElementCollection Children { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Many of the elements inside of an HTML file can have other HTML elements underneath them. The HtmlElement.Children collection provides a simple mechanism for exploring the tree structure of a document.

HtmlElement.Children only exposes elements whose direct parent is the current element. If you have an System.Windows.Forms.HtmlElement for a TABLE element, HtmlElement.Children will give you all of the TR (row) elements inside of the TABLE. To retrieve the TD (cell) elements contained inside of the TR elements, you will need to use either the HtmlElement.Children collection on each individual TR element, or use the HtmlElement.All collection on System.Windows.Forms.HtmlElement.

Elements in this collection are not guaranteed to be in source order.

If HtmlElement.CanHaveChildren is false, Children will always be empty.

Requirements

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