71 lines
3.3 KiB
C#
71 lines
3.3 KiB
C#
using System;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Indicates that the property grid should refresh when the associated property value changes. This class cannot be inherited.</summary>
|
|
// Token: 0x020000BE RID: 190
|
|
[AttributeUsage(AttributeTargets.All)]
|
|
public sealed class RefreshPropertiesAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.RefreshPropertiesAttribute" /> class.</summary>
|
|
/// <param name="refresh">A <see cref="T:System.ComponentModel.RefreshProperties" /> value indicating the nature of the refresh.</param>
|
|
// Token: 0x06000656 RID: 1622 RVA: 0x00010B24 File Offset: 0x0000ED24
|
|
public RefreshPropertiesAttribute(RefreshProperties refresh)
|
|
{
|
|
this.refresh = refresh;
|
|
}
|
|
|
|
/// <summary>Gets the refresh properties for the member.</summary>
|
|
/// <returns>A <see cref="T:System.ComponentModel.RefreshProperties" /> that indicates the current refresh properties for the member.</returns>
|
|
// Token: 0x170001A5 RID: 421
|
|
// (get) Token: 0x06000658 RID: 1624 RVA: 0x00010B58 File Offset: 0x0000ED58
|
|
public RefreshProperties RefreshProperties
|
|
{
|
|
get
|
|
{
|
|
return this.refresh;
|
|
}
|
|
}
|
|
|
|
/// <summary>Overrides the object's <see cref="Overload:System.Object.Equals" /> method.</summary>
|
|
/// <returns>true if the specified object is the same; otherwise, false.</returns>
|
|
/// <param name="value">The object to test for equality. </param>
|
|
// Token: 0x06000659 RID: 1625 RVA: 0x00010B60 File Offset: 0x0000ED60
|
|
public override bool Equals(object obj)
|
|
{
|
|
return obj is RefreshPropertiesAttribute && (obj == this || ((RefreshPropertiesAttribute)obj).RefreshProperties == this.refresh);
|
|
}
|
|
|
|
/// <summary>Returns the hash code for this object.</summary>
|
|
/// <returns>The hash code for the object that the attribute belongs to.</returns>
|
|
// Token: 0x0600065A RID: 1626 RVA: 0x00010B8C File Offset: 0x0000ED8C
|
|
public override int GetHashCode()
|
|
{
|
|
return this.refresh.GetHashCode();
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the current value of the attribute is the default value for the attribute.</summary>
|
|
/// <returns>true if the current value of the attribute is the default; otherwise, false.</returns>
|
|
// Token: 0x0600065B RID: 1627 RVA: 0x00010BA0 File Offset: 0x0000EDA0
|
|
public override bool IsDefaultAttribute()
|
|
{
|
|
return this == RefreshPropertiesAttribute.Default;
|
|
}
|
|
|
|
// Token: 0x040001DD RID: 477
|
|
private RefreshProperties refresh;
|
|
|
|
/// <summary>Indicates that all properties are queried again and refreshed if the property value is changed. This field is read-only.</summary>
|
|
// Token: 0x040001DE RID: 478
|
|
public static readonly RefreshPropertiesAttribute All = new RefreshPropertiesAttribute(RefreshProperties.All);
|
|
|
|
/// <summary>Indicates that no other properties are refreshed if the property value is changed. This field is read-only.</summary>
|
|
// Token: 0x040001DF RID: 479
|
|
public static readonly RefreshPropertiesAttribute Default = new RefreshPropertiesAttribute(RefreshProperties.None);
|
|
|
|
/// <summary>Indicates that all properties are repainted if the property value is changed. This field is read-only.</summary>
|
|
// Token: 0x040001E0 RID: 480
|
|
public static readonly RefreshPropertiesAttribute Repaint = new RefreshPropertiesAttribute(RefreshProperties.Repaint);
|
|
}
|
|
}
|