ComponentTray.ComponentCount 属性

获取包含在组件栏中的组件数。

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

语法

声明
Public ReadOnly Property ComponentCount As Integer
用法
Dim instance As ComponentTray
Dim value As Integer

value = instance.ComponentCount
public int ComponentCount { get; }
public:
property int ComponentCount {
    int get ();
}
/** @property */
public int get_ComponentCount ()
public function get ComponentCount () : int

属性值

组件栏中的组件数。

.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 命名空间