ParameterCollectionEditor クラス

定義

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

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使用して、 クラスと UITypeEditor (コレクション エディターの基本クラス) クラスをカスタム コントロールの プロパティにSelectParameters関連付けるParameterCollectionEditor方法を示しています。

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 オブジェクトの要素を ParameterCollection 編集するためのユーザー インターフェイスを Parameters 提供します。 プロパティにはParametersSelectParametersFilterParametersDeleteParametersInsertParametersおよびそのUpdateParameters他のデータ ソース コントロールの ObjectDataSourceSqlDataSource、および プロパティが含まれます。

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

メソッドは EditValueParameter 関連付けられたデータ ソース コントロールの の ParameterCollection 要素を編集します。 メソッドは 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)

適用対象

こちらもご覧ください