Bewerken

Delen via


DesignerActionPropertyItem.RelatedComponent Property

Definition

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

public:
 property System::ComponentModel::IComponent ^ RelatedComponent { System::ComponentModel::IComponent ^ get(); void set(System::ComponentModel::IComponent ^ value); };
public System.ComponentModel.IComponent RelatedComponent { get; set; }
public System.ComponentModel.IComponent? RelatedComponent { get; set; }
member this.RelatedComponent : System.ComponentModel.IComponent with get, set
Public Property RelatedComponent As IComponent

Property Value

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

Remarks

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.

Applies to

See also