共用方式為


HtmlElement.Children Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a read-only collection of HTML elements that are immediate descendants of the current HTML element.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

Syntax

'Declaration
Public ReadOnly Property Children As ScriptObjectCollection
public ScriptObjectCollection Children { get; }

Property Value

Type: System.Windows.Browser.ScriptObjectCollection
A collection of HTML elements. If the current HTML element has no children, the returned collection is empty.

Remarks

To modify the children of the current HTML element, use the AppendChild(HtmlElement), AppendChild(HtmlElement, HtmlElement), and RemoveChild methods.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.