Component.Container Property

Definition

获取包含 IContainerComponentGets the IContainer that contains the Component.

public:
 property System::ComponentModel::IContainer ^ Container { System::ComponentModel::IContainer ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.ComponentModel.IContainer Container { get; }
member this.Container : System.ComponentModel.IContainer
Public ReadOnly Property Container As IContainer

Property Value

IContainer

包含 IContainerComponent(如果有),如果 Component 未封装在 IContainer 中,则为 nullThe IContainer that contains the Component, if any, or null if the Component is not encapsulated in an IContainer.

Attributes

Remarks

容器中的组件在先进先出列表中跟踪,此列表还定义了组件在容器中的顺序。The components in a container are tracked in a first-in, first-out list, which also defines the order of the components within the container. 最后添加的组件是列表中的最后一个组件。The last component added is the last component in the list.

Applies to

See also