29 this.visibility = visibility;
36 public override bool Equals(
object obj)
43 if (designerSerializationVisibilityAttribute !=
null)
45 return designerSerializationVisibilityAttribute.
Visibility == visibility;
54 return base.GetHashCode();
Specifies the type of persistence to use when serializing a property on a component at design time.
static readonly DesignerSerializationVisibilityAttribute Default
Specifies the default value, which is F:System.ComponentModel.DesignerSerializationVisibilityAttribut...
Represents the base class for custom attributes.
override bool Equals(object obj)
Indicates whether this instance and a specified object are equal.
override int GetHashCode()
Returns the hash code for this object.
DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility visibility)
Initializes a new instance of the T:System.ComponentModel.DesignerSerializationVisibilityAttribute cl...
override bool IsDefaultAttribute()
Gets a value indicating whether the current value of the attribute is the default value for the attri...
static readonly DesignerSerializationVisibilityAttribute Hidden
Specifies that a serializer should not serialize the value of the property. This static field is read...
static readonly DesignerSerializationVisibilityAttribute Visible
Specifies that a serializer should be allowed to serialize the value of the property....
DesignerSerializationVisibility Visibility
Gets a value indicating the basic serialization mode a serializer should use when determining whether...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
DesignerSerializationVisibility
Specifies the visibility a property has to the design-time serializer.
static readonly DesignerSerializationVisibilityAttribute Content
Specifies that a serializer should serialize the contents of the property, rather than the property i...