FrameworkElement.LogicalChildren 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為此項目的邏輯子項目取得列舉值。
protected public:
virtual property System::Collections::IEnumerator ^ LogicalChildren { System::Collections::IEnumerator ^ get(); };
C#
protected internal virtual System.Collections.IEnumerator LogicalChildren { get; }
member this.LogicalChildren : System.Collections.IEnumerator
Protected Friend Overridable ReadOnly Property LogicalChildren As IEnumerator
此項目之邏輯子項目的列舉值。
LogicalChildren 可讓您逐一查看子項目。 這適用于可能沒有已定義、專用集合,但仍包含多個子項目的專案,特別是 FrameworkContentElement 子項目。
如需如何使用 LogicalChildren 和 AddLogicalChild 的詳細資訊,請參閱 WPF 中的樹狀結構。
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |