CanDisplayComponent Method

ComponentTray.CanDisplayComponent Method (IComponent)

 

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

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

protected virtual bool CanDisplayComponent(
	IComponent component
)

Parameters

component
Type: System.ComponentModel.IComponent

The IComponent to test.

Return Value

Type: System.Boolean

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

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft