System.ComponentModel.DesignTimeVisibleAttribute Class

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

See Also: DesignTimeVisibleAttribute Members


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


The System.ComponentModel.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 System.ComponentModel.DesignTimeVisibleAttribute is most useful when you have a control that accepts child components. For example, the System.Windows.Forms.TreeView control's node items should not appear in the component tray because they are drawn by the System.Windows.Forms.TreeView control.


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