Component.Container Component.Container Component.Container Component.Container Property

定义

获取 IContainer,它包含 ComponentGets 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

属性值

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

注解

在容器中的组件中先入先出列表,它还定义在容器内的组件的顺序进行跟踪。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.

适用于

另请参阅