IContentHost.HostedElements 属性

定义

获取一个枚举,该枚举包含所有后代ContentElement派生类,以及作为其子代类之一的直接后代IContentHostContentElement的所有UIElement派生类。

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派生类的枚举,以及作为其子ContentElement代类之一的直接后代IContentHost的所有UIElement派生类。 换句话说,为其创建可视表示形式(ContentElement派生类)或其布局由IContentHost(第一级后代UIElement派生类)驱动的元素IContentHost

适用于