ComponentDesigner.AssociatedComponents 属性

定义

获取与设计器所管理的组件关联的组件集合。Gets the collection of components associated with the component managed by the designer.

public:
 virtual property System::Collections::ICollection ^ AssociatedComponents { System::Collections::ICollection ^ get(); };
public virtual System.Collections.ICollection AssociatedComponents { get; }
member this.AssociatedComponents : System.Collections.ICollection
Public Overridable ReadOnly Property AssociatedComponents As ICollection

属性值

与设计器所管理的组件关联的组件。The components that are associated with the component managed by the designer.

注解

此属性指示在复制、拖动或移动操作期间要复制或移动设计器管理的组件的任何组件。This property indicates any components to copy or move along with the component managed by the designer during a copy, drag, or move operation.

如果此集合包含对当前设计模式文档中的其他组件的引用,则在复制操作过程中,这些组件将连同设计器管理的组件一起复制。If this collection contains references to other components in the current design mode document, those components will be copied along with the component managed by the designer during a copy operation.

选择设计器管理的组件时,将使用任何嵌套控件填充该集合。When the component managed by the designer is selected, this collection is filled with any nested controls. 此集合还可以包含其他组件,如工具栏按钮。This collection can also include other components, such as the buttons of a toolbar.

适用于