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

IContainer,可能包含 Component,如果 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