Прочетете на английски Редактиране

Споделяне чрез


ComponentTray.CanDisplayComponent(IComponent) Method

Definition

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

C#
protected virtual bool CanDisplayComponent(System.ComponentModel.IComponent component);

Parameters

component
IComponent

The 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 DesignTimeVisibleAttribute, which indicates whether the component has a user interface that can be displayed.

Applies to

Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10