ListControlDesigner.Initialize メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ListControlDesigner.Initialize メソッドの意味・解説 

ListControlDesigner.Initialize メソッド

関連付けられたコントロールをデザイナで表示、編集、デザインできるように準備します。

名前空間: System.Web.UI.Design.WebControls
アセンブリ: System.Design (system.design.dll 内)
構文構文

Public Overrides Sub Initialize
 ( _
    component As IComponent _
)
Dim instance As ListControlDesigner
Dim component As IComponent

instance.Initialize(component)

パラメータ

component

IComponent を実装する ListControl から派生したコントロール。

解説解説
使用例使用例

ListControlDesigner クラスから派生したデザイナで Initialize メソッドをオーバーライドし、カスタム デザイナで SimpleRadioButtonList という名前のコントロール クラスのインスタンスだけを使用するようにするコード例を次に示します。

このコード例は、ListControlDesigner クラスのトピックで取り上げているコード例の一部分です。

Public Overrides Sub Initialize(ByVal
 component As IComponent)

    ' Ensure that only a SimpleRadioButtonList can be created 
    ' in this designer.
    Debug.Assert( _
        TypeOf component Is SimpleRadioButtonList,
 _
        "An invalid SimpleRadioButtonList control was initialized.")

    simpleRadioButtonList = CType(component, SimpleRadioButtonList)
    MyBase.Initialize(component)
End Sub ' Initialize
public override void Initialize(IComponent
 component)
{
    // Ensure that only a SimpleRadioButtonList can be 
    // created in this designer.
    Debug.Assert( 
        component is SimpleRadioButtonList, 
        "An invalid SimpleRadioButtonList control was initialized.");

    simpleRadioButtonList = (SimpleRadioButtonList)component;
    base.Initialize(component);
} // Initialize
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ListControlDesigner クラス
ListControlDesigner メンバ
System.Web.UI.Design.WebControls 名前空間
ListControl
IDesigner
IComponent
BaseDataBoundControlDesigner.Initialize
ControlDesigner.Initialize
ComponentDesigner.Initialize



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

ListControlDesigner.Initialize メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ListControlDesigner.Initialize メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS