ComponentTray.RemoveComponent 方法

从组件栏中移除指定的组件。

**命名空间:**System.Windows.Forms.Design
**程序集:**System.Design(在 system.design.dll 中)

语法

声明
Public Overridable Sub RemoveComponent ( _
    component As IComponent _
)
用法
Dim instance As ComponentTray
Dim component As IComponent

instance.RemoveComponent(component)
public virtual void RemoveComponent (
    IComponent component
)
public:
virtual void RemoveComponent (
    IComponent^ component
)
public void RemoveComponent (
    IComponent component
)
public function RemoveComponent (
    component : IComponent
)

参数

  • component
    要从组件栏中移除的 IComponent

.NET Framework 安全性

  • 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

ComponentTray 类
ComponentTray 成员
System.Windows.Forms.Design 命名空间
AddComponent