class DesignOnlyAttribute

in global :: System . ComponentModel

Specifies whether a property can only be set at design time.


public DesignOnlyAttribute( bool isDesignOnly )

Initializes a new instance of the class.

  • isDesignOnly if a property can be set only at design time; if the property can be set at design time and at run time.

public static DesignOnlyAttribute Default

Specifies the default value for the , which is . This field is read-only.

public bool Equals( object obj )

Returns whether the value of the given object is equal to the current .

  • obj The object to test the value equality of.
  • Returns if the value of the given object is equal to that of the current; otherwise, .

public bool IsDesignOnly { get; }

Gets a value indicating whether a property can be set only at design time.

  • Returns if a property can be set only at design time; otherwise, .

public static DesignOnlyAttribute No

Specifies that a property can be set at design time or at run time. This field is read-only.

public static DesignOnlyAttribute Yes

Specifies that a property can be set only at design time. This field is read-only.

public int GetHashCode( )

😔 No documentation found.

public bool IsDefaultAttribute( )

😔 No documentation found.

public object TypeId { get; }

😔 No documentation found.

public bool Match( object obj )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.