BaseControlArray 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
实现从 Visual Basic 6.0 升级的应用程序中控制数组的常见基本功能。
public ref class BaseControlArray abstract : System::ComponentModel::Component, System::ComponentModel::ISupportInitialize
public abstract class BaseControlArray : System.ComponentModel.Component, System.ComponentModel.ISupportInitialize
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public abstract class BaseControlArray : System.ComponentModel.Component, System.ComponentModel.ISupportInitialize
type BaseControlArray = class
inherit Component
interface ISupportInitialize
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
type BaseControlArray = class
inherit Component
interface ISupportInitialize
Public MustInherit Class BaseControlArray
Inherits Component
Implements ISupportInitialize
- 继承
- 派生
- 属性
- 实现
注解
您通常不继承自 BaseControlArray。 若要创建自己的控件数组,请继承自 Microsoft.VisualBasic.Compatibility.VB6 命名空间中的控件数组类之一。
注释
命名空间中的 Microsoft.VisualBasic.Compatibility.VB6 函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。
构造函数
| 名称 | 说明 |
|---|---|
| BaseControlArray() |
已过时.
初始化 BaseControlArray 类的新实例。 |
| BaseControlArray(IContainer) |
已过时.
初始化类的新实例 BaseControlArray ,可以选择指定容器。 |
字段
| 名称 | 说明 |
|---|---|
| components |
已过时.
存储控件数组的容器。 |
| controlAddedAtDesignTime |
已过时.
存储值,用于跟踪控件数组中的控件是在设计时还是运行时创建的。 |
| controls |
已过时.
存储表示控件数组中的控件的值。 |
| fIsEndInitCalled |
已过时.
存储一个值,该值指示控件数组容器的初始化代码是否已完成执行。 |
| indices |
已过时.
存储控件数组的索引。 |
属性
| 名称 | 说明 |
|---|---|
| CanRaiseEvents |
已过时.
获取一个值,该值指示组件是否可以引发事件。 (继承自 Component) |
| Container |
已过时.
IContainer获取包含 .Component (继承自 Component) |
| DesignMode |
已过时.
获取一个值,该值指示当前是否 Component 处于设计模式。 (继承自 Component) |
| Events |
已过时.
获取附加到此 Component对象的事件处理程序的列表。 (继承自 Component) |
| Site |
已过时.
(继承自 Component)
|
方法
| 名称 | 说明 |
|---|---|
| BaseCanExtend(Object) |
已过时.
获取一个值,该值指示控件是否是控件数组的成员。 |
| BaseGetIndex(Object) |
已过时.
获取控件数组中控件的索引。 |
| BaseGetItem(Int16) |
已过时.
获取控件数组中指定索引的控件。 |
| BaseResetIndex(Object) |
已过时.
类中 BaseControlArray 不支持。 |
| BaseSetIndex(Object, Int16, Boolean) |
已过时.
设置控件数组中控件的索引。 |
| BaseShouldSerializeIndex(Object) |
已过时.
返回一个值,该值指示控件是否是控件数组的成员。 |
| Count() |
已过时.
返回控件数组中的控件数。 |
| CreateObjRef(Type) |
已过时.
创建一个对象,其中包含生成用于与远程对象通信的代理所需的所有相关信息。 (继承自 MarshalByRefObject) |
| Dispose() |
已过时.
释放该 Component命令使用的所有资源。 (继承自 Component) |
| Dispose(Boolean) |
已过时.
释放控件数组中控件使用的非托管资源,并选择性地释放托管资源。 |
| Equals(Object) |
已过时.
确定指定的对象是否等于当前对象。 (继承自 Object) |
| GetControlInstanceType() |
已过时.
返回控件数组中控件的类型。 |
| GetEnumerator() |
已过时.
返回对枚举器对象的引用,该对象用于循环访问控件数组。 |
| GetHashCode() |
已过时.
用作默认哈希函数。 (继承自 Object) |
| GetLifetimeService() |
已过时.
检索控制此实例的生存期策略的当前生存期服务对象。 (继承自 MarshalByRefObject) |
| GetService(Type) |
已过时.
返回一个对象,该对象表示服务由 Component 或其 Container提供的服务。 (继承自 Component) |
| GetType() |
已过时.
获取当前实例的 Type。 (继承自 Object) |
| HookUpControlEvents(Object) |
已过时.
为控件数组中的控件添加事件处理程序。 |
| InitializeLifetimeService() |
已过时.
获取生存期服务对象来控制此实例的生存期策略。 (继承自 MarshalByRefObject) |
| LBound() |
已过时.
返回一个 |
| Load(Int16) |
已过时.
在控件数组中创建一个新元素。 |
| MemberwiseClone() |
已过时.
创建当前 Object的浅表副本。 (继承自 Object) |
| MemberwiseClone(Boolean) |
已过时.
创建当前 MarshalByRefObject 对象的浅表副本。 (继承自 MarshalByRefObject) |
| ToString() |
已过时.
返回包含 String 的名称 Component(如果有)。 不应重写此方法。 (继承自 Component) |
| UBound() |
已过时.
返回一个 |
| Unload(Int16) |
已过时.
从控件数组中删除控件。 |
活动
| 名称 | 说明 |
|---|---|
| Disposed |
已过时.
当组件通过对方法的调用 Dispose() 释放时发生。 (继承自 Component) |
显式接口实现
| 名称 | 说明 |
|---|---|
| ISupportInitialize.BeginInit() |
已过时.
开始初始化控件。 |
| ISupportInitialize.EndInit() |
已过时.
结束控件的初始化。 |