RefreshPropertiesAttribute クラス

定義

関連付けられているプロパティ値が変更されたときに、プロパティ グリッドが更新されるように指定します。 このクラスは継承できません。

public ref class RefreshPropertiesAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.All)]
public sealed class RefreshPropertiesAttribute : Attribute
public sealed class RefreshPropertiesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.All)>]
type RefreshPropertiesAttribute = class
    inherit Attribute
type RefreshPropertiesAttribute = class
    inherit Attribute
Public NotInheritable Class RefreshPropertiesAttribute
Inherits Attribute
継承
RefreshPropertiesAttribute
属性

次のコード例では、 クラスを RefreshPropertiesAttribute 使用して プロパティの更新モードを指定する方法を DataSource 示します。 完全なコード一覧については、「方法: Windows フォーム コントロールで属性を適用する」を参照してください。

[Category("Data")]
[Description("Indicates the source of data for the control.")]
[RefreshProperties(RefreshProperties.Repaint)]
[AttributeProvider(typeof(IListSource))]
public object DataSource
{
    get
    {
        return this.dataGridView1.DataSource;
    }

    set
    {
        this.dataGridView1.DataSource = value;
    }
}
<Category("Data"), _
Description("Indicates the source of data for the control."), _
RefreshProperties(RefreshProperties.Repaint), _
AttributeProvider(GetType(IListSource))> _
Public Property DataSource() As Object
    Get
        Return Me.dataGridView1.DataSource
    End Get

    Set(ByVal value As Object)
        Me.dataGridView1.DataSource = value
    End Set
End Property

注釈

RefreshPropertiesAttribute 、コントロールを更新するときに使用する更新モードの種類を PropertyGrid 示します。

コンストラクター

RefreshPropertiesAttribute(RefreshProperties)

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

フィールド

All

プロパティ値が変更された場合に、すべてのプロパティのクエリが再実行されて更新されることを示します。 このフィールドは読み取り専用です。

Default

プロパティ値が変更された場合に、ほかのプロパティ値が更新されないことを示します。 このフィールドは読み取り専用です。

Repaint

プロパティ値が変更された場合に、すべてのプロパティが再描画されることを示します。 このフィールドは読み取り専用です。

プロパティ

RefreshProperties

メンバーの更新プロパティを取得します。

TypeId

派生クラスで実装されると、この Attribute の一意の識別子を取得します。

(継承元 Attribute)

メソッド

Equals(Object)

オブジェクトの Equals メソッドをオーバーライドします。

GetHashCode()

このオブジェクトのハッシュ コードを返します。

GetType()

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

(継承元 Object)
IsDefaultAttribute()

属性の現在の値が既定値かどうかを示す値を取得します。

IsDefaultAttribute()

派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。

(継承元 Attribute)
Match(Object)

派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()

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

(継承元 Object)
ToString()

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

(継承元 Object)

明示的なインターフェイスの実装

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

一連の名前を対応する一連のディスパッチ識別子に割り当てます。

(継承元 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。

(継承元 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。

(継承元 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。

(継承元 Attribute)

適用対象

こちらもご覧ください