ColorDialogArray 类

定义

警告

此 API 现已过时。

提供 ColorDialog 控件的控件数组。Provides a control array of ColorDialog controls.

public ref class ColorDialogArray : Microsoft::VisualBasic::Compatibility::VB6::BaseControlArray, System::ComponentModel::IExtenderProvider
public class ColorDialogArray : Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray, System.ComponentModel.IExtenderProvider
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. https://go.microsoft.com/fwlink/?linkid=160862")]
public class ColorDialogArray : Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray, System.ComponentModel.IExtenderProvider
type ColorDialogArray = class
    inherit BaseControlArray
    interface IExtenderProvider
Public Class ColorDialogArray
Inherits BaseControlArray
Implements IExtenderProvider
继承
属性
实现

注解

ColorDialogArray 类提供 Visual Basic 6.0 ColorDialog 数组的运行时功能的等效项。The ColorDialogArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ColorDialog array. 它不提供 Visual Basic 6.0 控件数组的设计时功能。It does not provide the design-time features of a Visual Basic 6.0 control array.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 大多数情况下,这些函数和对象可再现 .NET Framework.NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有 Visual Basic 6.0 代码模型与 .NET Framework.NET Framework 实现有显著区别时才需要这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.

构造函数

ColorDialogArray()

初始化 ColorDialogArray 类的新实例。Initializes a new instance of the ColorDialogArray class.

ColorDialogArray(IContainer)

初始化 ColorDialogArray 类的新实例,并指定其容器。Initializes a new instance of the ColorDialogArray class, specifying its container.

字段

components

存储控件数组的容器。Stores the container for a control array.

(继承自 BaseControlArray)
controlAddedAtDesignTime

存储值以跟踪是在设计时还是在运行时创建控件数组中的控件。Stores values to track whether a control in a control array was created at design time or at run time.

(继承自 BaseControlArray)
controls

存储表示控件数组中的控件的值。Stores values that represent the controls in a control array.

(继承自 BaseControlArray)
fIsEndInitCalled

存储一个值,该值指示控件数组容器的初始化代码是否已经执行完毕。Stores a value indicating whether the initialization code for a control array's container has finished executing.

(继承自 BaseControlArray)
indices

存储控件数组的索引。Stores the indices for a control array.

(继承自 BaseControlArray)

属性

CanRaiseEvents

获取一个指示组件是否可以引发事件的值。Gets a value indicating whether the component can raise an event.

(继承自 Component)
Container

获取包含 IContainerComponentGets the IContainer that contains the Component.

(继承自 Component)
DesignMode

获取一个值,用以指示 Component 当前是否处于设计模式。Gets a value that indicates whether the Component is currently in design mode.

(继承自 Component)
Events

获取附加到此 Component 的事件处理程序的列表。Gets the list of event handlers that are attached to this Component.

(继承自 Component)
Item[Int16]

通过索引获取 ColorDialogArray 的特定元素。Gets a specific element of a ColorDialogArray by index. 只读。Read-only.

Site

获取或设置 ISiteComponentGets or sets the ISite of the Component.

(继承自 Component)

方法

BaseCanExtend(Object)

获取一个值,该值指示控件是否为控件数组的成员。Gets a value that indicates whether a control is a member of a control array.

(继承自 BaseControlArray)
BaseGetIndex(Object)

获取控件数组中控件的索引。Gets the index of a control in a control array.

(继承自 BaseControlArray)
BaseGetItem(Int16)

获取控件数组中指定索引的控件。Gets the control for a specified index in a control array.

(继承自 BaseControlArray)
BaseResetIndex(Object)

BaseControlArray 类中不受支持。Not supported in the BaseControlArray class.

(继承自 BaseControlArray)
BaseSetIndex(Object, Int16, Boolean)

设置控件数组中控件的索引。Sets the index for a control in a control array.

(继承自 BaseControlArray)
BaseShouldSerializeIndex(Object)

返回一个值,该值指示控件是否为控件数组的成员。Returns a value that indicates whether a control is a member of a control array.

(继承自 BaseControlArray)
CanExtend(Object)

获取一个值,该值确定控件是否是 ColorDialogArray 的一个成员。Gets a value that determines whether a control is a member of a ColorDialogArray.

Count()

返回控件数组中的控件数。Returns the number of controls in a control array.

(继承自 BaseControlArray)
CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
Dispose()

释放由 Component 使用的所有资源。Releases all resources used by the Component.

(继承自 Component)
Dispose(Boolean)

释放控件数组中控件使用的非托管资源,还可以选择释放托管资源。Releases the unmanaged resources that are used by a control in a control array and optionally releases the managed resources.

(继承自 BaseControlArray)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetControlInstanceType()

重写 GetControlInstanceType()Overrides GetControlInstanceType().

GetEnumerator()

返回一个对枚举数对象的引用,该对象用于循环访问控件数组。Returns a reference to an enumerator object, which is used to iterate over a control array.

(继承自 BaseControlArray)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetIndex(ColorDialog)

获取 ColorDialog 中的 ColorDialogArray 的索引。Gets the index of a ColorDialog in a ColorDialogArray.

GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetService(Type)

返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。Returns an object that represents a service provided by the Component or by its Container.

(继承自 Component)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
HookUpControlEvents(Object)

重写 HookUpControlEvents(Object)Overrides HookUpControlEvents(Object).

InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(继承自 MarshalByRefObject)
LBound()

返回的 Short 包含控件数组的最小可用下标。Returns a Short that contains the smallest available subscript for a control array.

(继承自 BaseControlArray)
Load(Int16)

创建控件数组中的新元素。Creates a new element in a control array.

(继承自 BaseControlArray)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
ResetIndex(ColorDialog)

ColorDialogArray 类不支持 ResetIndex 方法。The ResetIndex method is not supported in the ColorDialogArray class.

SetIndex(ColorDialog, Int16)

设置 ColorDialog 中的初始 ColorDialogArray 的索引。Sets the index of the initial ColorDialog in a ColorDialogArray.

ShouldSerializeIndex(ColorDialog)

返回一个值,该值指示 ColorDialog 是否为此 ColorDialogArray 的成员。Returns a value that indicates whether a ColorDialog is a member of this ColorDialogArray.

ToString()

返回包含 String 的名称的 Component(如果有)。Returns a String containing the name of the Component, if any. 不应重写此方法。This method should not be overridden.

(继承自 Component)
UBound()

返回的 Short 包含控件数组的最大可用下标。Returns a Short that contains the largest available subscript for a control array.

(继承自 BaseControlArray)
Unload(Int16)

从控件数组中移除控件。Removes a control from a control array.

(继承自 BaseControlArray)

事件

Disposed

在通过调用 Dispose() 方法释放组件时发生。Occurs when the component is disposed by a call to the Dispose() method.

(继承自 Component)
HelpRequest

用户请求控件帮助时发生。Occurs when the user requests help for a control.

显式接口实现

ISupportInitialize.BeginInit()

开始控件的初始化。Begins the initialization of the control.

(继承自 BaseControlArray)
ISupportInitialize.EndInit()

结束控件的初始化。Ends the initialization of a control.

(继承自 BaseControlArray)

适用于