RefreshProperties 列挙型

定義

[プロパティ] ウィンドウの表示を更新するときの型を示す識別子を定義します。

public enum class RefreshProperties
public enum RefreshProperties
type RefreshProperties = 
Public Enum RefreshProperties
継承
RefreshProperties

フィールド

All 1

プロパティのクエリを再実行し、表示を更新する必要があります。

None 0

更新は不要です。

Repaint 2

表示を更新する必要があります。

次の例では、クラスを 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

注釈

RefreshPropertiesは、プロパティ ウィンドウのビューを更新するときに使用できる更新メソッドの種類の識別子を定義します。

適用対象

こちらもご覧ください