System.Windows.Forms.Design.ComponentTray.CanDisplayComponent Method

Gets a value indicating whether the specified component can be displayed.

Syntax

protected virtual bool CanDisplayComponent (System.ComponentModel.IComponent component)

Parameters

component
The System.ComponentModel.IComponent to test.

Returns

true if the component can be displayed; otherwise, false.

Remarks

This method tests the specified component for the existence of a System.ComponentModel.DesignTimeVisibleAttribute, which indicates whether the component has a user interface that can be displayed.

Requirements

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0