Edit

Share via


RefreshProperties Enum

Definition

Defines identifiers that indicate the type of a refresh of the Properties window.

C#
public enum RefreshProperties
Inheritance
RefreshProperties

Fields

Name Value Description
None 0

No refresh is necessary.

All 1

The properties should be requeried and the view should be refreshed.

Repaint 2

The view should be refreshed.

Examples

The following example uses the RefreshPropertiesAttribute class to specify the refresh mode for a DataSource property. For a full code listing, see How to: Apply Attributes in Windows Forms Controls.

C#
[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;
    }
}

Remarks

RefreshProperties defines identifiers for types of refresh methods that can be used when refreshing the view of the Properties window.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also