using System;
namespace System.ComponentModel
{
///
/// marks a component's visibility. If is present, a visual designer can show this component on a designer.
// Token: 0x02000071 RID: 113
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
public sealed class DesignTimeVisibleAttribute : Attribute
{
/// Creates a new set to the default value of false.
// Token: 0x0600041D RID: 1053 RVA: 0x0000C4D4 File Offset: 0x0000A6D4
public DesignTimeVisibleAttribute()
: this(true)
{
}
/// Creates a new with the property set to the given value in .
/// The value that the property will be set against.
// Token: 0x0600041E RID: 1054 RVA: 0x0000C4E0 File Offset: 0x0000A6E0
public DesignTimeVisibleAttribute(bool visible)
{
this.visible = visible;
}
/// Gets or sets whether the component should be shown at design time.
/// true if this component should be shown at design time, or false if it shouldn't.
// Token: 0x17000116 RID: 278
// (get) Token: 0x06000420 RID: 1056 RVA: 0x0000C514 File Offset: 0x0000A714
public bool Visible
{
get
{
return this.visible;
}
}
/// The object to compare.
// Token: 0x06000421 RID: 1057 RVA: 0x0000C51C File Offset: 0x0000A71C
public override bool Equals(object obj)
{
return obj is DesignTimeVisibleAttribute && (obj == this || ((DesignTimeVisibleAttribute)obj).Visible == this.visible);
}
// Token: 0x06000422 RID: 1058 RVA: 0x0000C548 File Offset: 0x0000A748
public override int GetHashCode()
{
return this.visible.GetHashCode();
}
/// Gets a value indicating if this instance is equal to the value.
/// true, if this instance is equal to the value; otherwise, false.
// Token: 0x06000423 RID: 1059 RVA: 0x0000C558 File Offset: 0x0000A758
public override bool IsDefaultAttribute()
{
return this.visible == DesignTimeVisibleAttribute.Default.Visible;
}
// Token: 0x04000152 RID: 338
private bool visible;
/// The default visibility which is Yes.
// Token: 0x04000153 RID: 339
public static readonly DesignTimeVisibleAttribute Default = new DesignTimeVisibleAttribute(true);
/// Marks a component as not visible in a visual designer.
// Token: 0x04000154 RID: 340
public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute(false);
/// Marks a component as visible in a visual designer.
// Token: 0x04000155 RID: 341
public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute(true);
}
}