PictureBoxArray 类

定义

警告

此 API 现已过时。

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

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

注解

PictureBoxArray 类提供 Visual Basic 6.0 PictureBox 数组的运行时功能的等效项。The PictureBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 PictureBox 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.

构造函数

PictureBoxArray()

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

PictureBoxArray(IContainer)

初始化 PictureBoxArray 类的新实例,并指定其容器。Initializes a new instance of the PictureBoxArray 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]

通过索引获取 PictureBoxArray 的特定元素。Gets a specific element of a PictureBoxArray 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)

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

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(PictureBox)

获取 PictureBox 中的 PictureBoxArray 的索引。Gets the index of a PictureBox in a PictureBoxArray.

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(PictureBox)

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

SetIndex(PictureBox, Int16)

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

ShouldSerializeIndex(PictureBox)

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

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)

事件

BackColorChanged

BackColor 属性的值更改时发生。Occurs when the value of the BackColor property changes.

BackgroundImageChanged

BackgroundImage 属性的值更改时发生。Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged

BackgroundImageLayout 属性的值更改时发生。Occurs when the value of the BackgroundImageLayout property changes.

BindingContextChanged

BindingContext 属性的值更改时发生。Occurs when the value of the BindingContext property changes.

ChangeUICues

焦点或键盘用户界面 (UI) 提示更改时发生。Occurs when the focus or keyboard user interface (UI) cues change.

Click

在单击 PictureBox 中的 PictureBoxArray 时发生。Occurs when a PictureBox in a PictureBoxArray is clicked.

ClientSizeChanged

ClientSize 属性的值更改时发生。Occurs when the value of the ClientSize property changes.

ContextMenuChanged

ContextMenu 属性的值更改时发生。Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged

ContextMenuStrip 属性的值更改时发生。Occurs when the value of the ContextMenuStrip property changes.

ControlAdded

在将新控件添加到 PictureBoxArray 时发生。Occurs when a new control is added to the PictureBoxArray.

ControlRemoved

在从 PictureBoxArray 移除控件时发生。Occurs when a control is removed from the PictureBoxArray.

CursorChanged

Cursor 属性的值更改时发生。Occurs when the value of the Cursor property changes.

Disposed

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

(继承自 Component)
DockChanged

Dock 属性的值更改时发生。Occurs when the value of the Dock property changes.

DoubleClick

当双击 PictureBox 中的 PictureBoxArray 控件时发生。Occurs when a PictureBox control in a PictureBoxArray is double-clicked.

DragDrop

拖放操作完成时发生。Occurs when a drag-and-drop operation is completed.

DragEnter

在将对象拖入控件的边界时发生。Occurs when an object is dragged into the control's bounds.

DragLeave

将对象拖出控件的边界时发生。Occurs when an object is dragged out of the control's bounds.

DragOver

在将对象拖到控件的边界上发生。Occurs when an object is dragged over the control's bounds.

EnabledChanged

Enabled 属性的值更改时发生。Occurs when the value of the Enabled property changes.

GiveFeedback

在执行拖动操作期间发生。Occurs during a drag operation.

HelpRequested

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

Layout

在控件应重新定位其子控件时发生。Occurs when a control should reposition its child controls.

LoadCompleted

在异步图像加载操作完成、取消或引发异常时发生。Occurs when the asynchronous image-load operation is completed, been canceled, or raised an exception.

LoadProgressChanged

在异步图像加载操作的进度更改时发生。Occurs when the progress of an asynchronous image-loading operation has changed.

LocationChanged

Location 属性的值更改时发生。Occurs when the value of the Location property changes.

MarginChanged

Margin 属性的值更改时发生。Occurs when the value of the Margin property changes.

MouseCaptureChanged

当控件失去或获得鼠标捕获时发生。Occurs when the control loses or gains mouse capture.

MouseClick

用鼠标单击控件时发生。Occurs when the control is clicked by the mouse.

MouseDoubleClick

在鼠标双击控件时发生。Occurs when the control is double-clicked by the mouse.

MouseDown

当鼠标指针位于控件上并按下鼠标键时发生。Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter

在鼠标指针进入控件时发生。Occurs when the mouse pointer enters the control.

MouseHover

在鼠标指针停放在控件上时发生。Occurs when the mouse pointer rests on the control.

MouseLeave

在鼠标指针离开控件时发生。Occurs when the mouse pointer leaves the control.

MouseMove

在鼠标指针移到控件上时发生。Occurs when the mouse pointer is moved over the control.

MouseUp

在鼠标指针在控件上并释放鼠标键时发生。Occurs when the mouse pointer is over the control and a mouse button is released.

Move

在移动控件时发生。Occurs when the control is moved.

PaddingChanged

当控件的 Padding 属性更改时发生。Occurs when the control's Padding property changes.

Paint

在重绘控件时发生。Occurs when the control is redrawn.

ParentChanged

当控件的 Parent 属性更改时发生。Occurs when the control's Parent property changes.

QueryAccessibilityHelp

AccessibleObject 为辅助功能应用程序提供帮助时发生。Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag

在拖放操作期间发生,并且允许拖动源确定是否应取消拖放操作。Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.

RegionChanged

Region 属性的值更改时发生。Occurs when the value of the Region property changes.

Resize

在调整控件大小时发生。Occurs when the control is resized.

SizeChanged

Size 属性值更改时发生。Occurs when the Size property value changes.

SizeModeChanged

SizeMode 属性值更改时发生。Occurs when the SizeMode property value changes.

StyleChanged

在控件样式更改时发生。Occurs when the control style changes.

SystemColorsChanged

系统颜色更改时发生。Occurs when the system colors change.

Validated

在控件完成验证时发生。Occurs when the control is finished validating.

Validating

在控件验证时发生。Occurs when the control is validating.

VisibleChanged

Visible 属性值更改时发生。Occurs when the Visible property value changes.

显式接口实现

ISupportInitialize.BeginInit()

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

(继承自 BaseControlArray)
ISupportInitialize.EndInit()

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

(继承自 BaseControlArray)

适用于