ParameterCollectionEditor クラス

定義

関連付けられたデータ ソース コントロールのParameterCollection プロパティで指定されるParameters オブジェクトのコンポーネント エディターを提供します。

public ref class ParameterCollectionEditor : System::Drawing::Design::UITypeEditor
public class ParameterCollectionEditor : System.Drawing.Design.UITypeEditor
type ParameterCollectionEditor = class
    inherit UITypeEditor
Public Class ParameterCollectionEditor
Inherits UITypeEditor
継承
ParameterCollectionEditor

次のコード例は、 EditorAttribute 属性を使用して、 ParameterCollectionEditor クラスと UITypeEditor (コレクション エディター基本クラス) クラスをカスタム コントロールの SelectParameters プロパティに関連付ける方法を示しています。

private ParameterCollection selectParams;

// Associate the ParameterCollectionEditor with the SelectParameters. 
[Editor(typeof(System.Web.UI.Design.WebControls.
    ParameterCollectionEditor),
    typeof(UITypeEditor))]
public ParameterCollection SelectParameters
{
    get
    {
        // If there is no selectParams collection, create it.
        if (selectParams == null)
            selectParams = new ParameterCollection();

        return selectParams;
    }
    set { selectParams = value; }
} // SelectParameters
Private selectParams As ParameterCollection

' Associate the ParameterCollectionEditor with the SelectParameters. 
<EditorAttribute(GetType(System.Web.UI.Design.WebControls. _
    ParameterCollectionEditor), _
    GetType(UITypeEditor))> _
Public Property SelectParameters() As ParameterCollection
    Get
        If selectParams Is Nothing Then
            selectParams = New ParameterCollection()
        End If
        Return selectParams
    End Get
    Set(ByVal value As ParameterCollection)
        selectParams = value
    End Set
End Property ' SelectParameters

注釈

ParameterCollectionEditor クラスは、Parameter プロパティの 1 つで指定されているように、デザイン時にParameterCollection オブジェクトのParameters要素を編集するためのユーザー インターフェイスを提供します。 Parametersプロパティには、DeleteParametersFilterParameters、およびその他のデータ ソース コントロールのInsertParametersSelectParametersUpdateParametersObjectDataSourceSqlDataSourceのプロパティが含まれます。

ParameterCollectionEditorは、ビジュアル デザイナーの [プロパティ] グリッドにあるParametersプロパティの 1 つにある省略記号 (...) ボタンを選択して呼び出されます。

EditValue メソッドは、関連付けられたデータ ソース コントロールのParameterParameterCollection要素を編集します。 GetEditStyle メソッドは、このエディターに関連付けられている編集スタイルを取得します。

コンストラクター

名前 説明
ParameterCollectionEditor()

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

プロパティ

名前 説明
IsDropDownResizable

ユーザーがドロップダウン エディターのサイズを変更できるかどうかを示す値を取得します。

(継承元 UITypeEditor)

メソッド

名前 説明
EditValue(IServiceProvider, Object)

GetEditStyle() メソッドで示されるエディター スタイルを使用して、指定したオブジェクトの値を編集します。

(継承元 UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object)

関連付けられたデータ ソース コントロールの ParameterCollection オブジェクトの要素を編集します。

Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetEditStyle()

EditValue(IServiceProvider, Object) メソッドで使用されるエディター スタイルを取得します。

(継承元 UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

このエディターに関連付けられている編集スタイルを取得します。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetPaintValueSupported()

このエディターがオブジェクトの値の表現の描画をサポートするかどうかを示します。

(継承元 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

指定したコンテキストが、指定したコンテキスト内でのオブジェクトの値の表現の描画をサポートするかどうかを示します。

(継承元 UITypeEditor)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
PaintValue(Object, Graphics, Rectangle)

指定したオブジェクトの値の表現を、指定したキャンバスに描画します。

(継承元 UITypeEditor)
PaintValue(PaintValueEventArgs)

指定した PaintValueEventArgsを使用して、オブジェクトの値の表現を描画します。

(継承元 UITypeEditor)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください