IContentHost.HostedElements 屬性

定義

取得列舉型別 (Enumeration),其中包含所有的子代 ContentElement 衍生類別,以及 UIElement 直接子代或其中一個子代 IContentHost 類別的所有 ContentElement 衍生類別。

public:
 property System::Collections::Generic::IEnumerator<System::Windows::IInputElement ^> ^ HostedElements { System::Collections::Generic::IEnumerator<System::Windows::IInputElement ^> ^ get(); };
public System.Collections.Generic.IEnumerator<System.Windows.IInputElement> HostedElements { get; }
member this.HostedElements : System.Collections.Generic.IEnumerator<System.Windows.IInputElement>
Public ReadOnly Property HostedElements As IEnumerator(Of IInputElement)

屬性值

包含所有子代 ContentElement 衍生類別,以及 UIElement 直接子代或其中一個子代 IContentHost 類別之所有 ContentElement 衍生類別的列舉型別。 換句話說,也就是 IContentHost 會為其建立視覺表示 (ContentElement 衍生類別) 或其配置是由 IContentHost 驅動的項目 (第一層的子代 UIElement 衍生類別)。

適用於