RefreshProperties Enum

Definisi

Menentukan pengidentifikasi yang menunjukkan jenis refresh jendela Properti.

public enum class RefreshProperties
public enum RefreshProperties
type RefreshProperties = 
Public Enum RefreshProperties
Warisan
RefreshProperties

Bidang

All 1

Properti harus dikueri ulang dan tampilan harus disegarkan.

None 0

Tidak perlu refresh.

Repaint 2

Tampilan harus disegarkan.

Contoh

Contoh berikut menggunakan RefreshPropertiesAttribute kelas untuk menentukan mode refresh untuk DataSource properti. Untuk daftar kode lengkap, lihat Cara: Menerapkan Atribut di kontrol Formulir 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

Keterangan

RefreshProperties menentukan pengidentifikasi untuk jenis metode refresh yang dapat digunakan saat menyegarkan tampilan jendela Properti.

Berlaku untuk

Lihat juga