System.ComponentModel.DesignTimeVisibleAttribute Class

DesignTimeVisibleAttribute marks a component's visibility. If DesignTimeVisibleAttribute.Yes is present, a visual designer can show this component on a designer.

See Also: DesignTimeVisibleAttribute


[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Interface | System.AttributeTargets.All)]
public sealed class DesignTimeVisibleAttribute : Attribute


The DesignTimeVisibleAttribute is a hint to the Designer. The Designer will ignore this attribute for components that have a UI presence. It can only be applied to classes.

The DesignTimeVisibleAttribute is most useful when you have a control that accepts child components. For example, the TreeView control's node items should not appear in the component tray because they are drawn by the TreeView control.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,

The members of System.ComponentModel.DesignTimeVisibleAttribute are listed below.

See Also: Attribute

Public Constructors

Creates a new DesignTimeVisibleAttribute set to the default value of false.

Creates a new DesignTimeVisibleAttribute with the DesignTimeVisibleAttribute.Visible property set to the given value in visible.

Public Fields

static readonly

The default visibility which is Yes.

static readonly

Marks a component as not visible in a visual designer.

static readonly

Marks a component as visible in a visual designer.

Public Properties


Gets or sets whether the component should be shown at design time.

Public Methods

Equals(Object) : Boolean
GetHashCode() : Int32
IsDefaultAttribute() : Boolean

Gets a value indicating if this instance is equal to the DesignTimeVisibleAttribute.Default value.