DesignerActionPropertyItem::RelatedComponent Property

 

Gets or sets a component that contributes its items to the current panel.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public:
property IComponent^ RelatedComponent {
	IComponent^ get();
	void set(IComponent^ value);
}

Property Value

Type: System.ComponentModel::IComponent^

The contributing component, which should have an associated designer that supplies DesignerActionItem objects.

With the RelatedComponent property, another component can lend its pull-model panel items to the current list. For example, a user control might aggregate the DesignerActionItem objects from one or more of its constituent controls.

This property works in conjunction with the DesignerActionItem::AllowAssociate property.

.NET Framework
Available since 2.0
Return to top
Show: