FrameworkElement.LogicalChildren FrameworkElement.LogicalChildren FrameworkElement.LogicalChildren FrameworkElement.LogicalChildren Property

定義

為此項目的邏輯子項目取得列舉值。Gets an enumerator for logical child elements of this element.

protected public:
 virtual property System::Collections::IEnumerator ^ LogicalChildren { System::Collections::IEnumerator ^ get(); };
protected internal virtual System.Collections.IEnumerator LogicalChildren { get; }
member this.LogicalChildren : System.Collections.IEnumerator
Protected Friend Overridable ReadOnly Property LogicalChildren As IEnumerator

屬性值

此項目之邏輯子項目的列舉值。An enumerator for logical child elements of this element.

備註

LogicalChildren 可讓您逐一查看子項目。LogicalChildren allows you to iterate over child elements. 這是適用於項目可能沒有定義、 專用的集合,但仍會包含一個以上的子項目,特別是FrameworkContentElement子項目。This is useful for elements that may not have a defined, dedicated collection but still contain more than one child element, particularly FrameworkContentElement child elements.

如需有關如何使用LogicalChildrenAddLogicalChild,請參閱WPF 中的樹狀結構For more information on how to use LogicalChildren and AddLogicalChild, see Trees in WPF.

適用於

另請參閱