Click or drag to resize
DefaultValueAttribute Class
Specifies the default value for a property.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    System.ComponentModelDefaultValueAttribute

Namespace: System.ComponentModel
Assembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax
C#
public sealed class DefaultValueAttribute : Attribute

The DefaultValueAttribute type exposes the following members.

Constructors
  NameDescription
Public methodDefaultValueAttribute(Boolean)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using a System.Boolean value.
Public methodDefaultValueAttribute(Byte)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using an 8-bit unsigned integer.
Public methodDefaultValueAttribute(Char)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using a Unicode character.
Public methodDefaultValueAttribute(Double)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using a double-precision floating point number.
Public methodDefaultValueAttribute(Int16)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using a 16-bit signed integer.
Public methodDefaultValueAttribute(Int32)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using a 32-bit signed integer.
Public methodDefaultValueAttribute(Int64)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using a 64-bit signed integer.
Public methodDefaultValueAttribute(Object)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class.
Public methodDefaultValueAttribute(Single)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using a single-precision floating point number.
Public methodDefaultValueAttribute(String)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class using a System.String.
Public methodDefaultValueAttribute(Type, String)
Initializes a new instance of the System.ComponentModel.DefaultValueAttribute class, converting the specified value to the specified type, and using an invariant culture as the translation context.
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyValue
Gets the default value of the property this attribute is bound to.
Top
See Also