DesignerActionList(IComponent) コンストラクター

定義

DesignerActionList クラスの新しいインスタンスを初期化します。

public:
 DesignerActionList(System::ComponentModel::IComponent ^ component);
public DesignerActionList (System.ComponentModel.IComponent component);
public DesignerActionList (System.ComponentModel.IComponent? component);
new System.ComponentModel.Design.DesignerActionList : System.ComponentModel.IComponent -> System.ComponentModel.Design.DesignerActionList
Public Sub New (component As IComponent)

パラメーター

component
IComponent

DesignerActionList に関連するコンポーネント。

次のコード例では、オブジェクトの DesignerActionItem コレクションを作成する方法を示します。

このコード例の詳細については、「方法: スマート タグをWindows フォーム コンポーネントにアタッチする」を参照してください。

public ColorLabelActionList( IComponent component ) : base(component) 
{
    this.colLabel = component as ColorLabel;

    // Cache a reference to DesignerActionUIService, so the
    // DesigneractionList can be refreshed.
    this.designerActionUISvc =
        GetService(typeof(DesignerActionUIService))
        as DesignerActionUIService;
}
Public Sub New(ByVal component As IComponent)

    MyBase.New(component)
    Me.colLabel = component

    ' Cache a reference to DesignerActionUIService, so the
    ' DesigneractionList can be refreshed.
    Me.designerActionUISvc = _
    CType(GetService(GetType(DesignerActionUIService)), _
    DesignerActionUIService)

End Sub

注釈

コンストラクターは DesignerActionList 、 プロパティを AutoShowfalse設定します。

適用対象