FileListBoxArray 类

定义

警告

此 API 现已过时。

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

public ref class FileListBoxArray : Microsoft::VisualBasic::Compatibility::VB6::BaseControlArray, System::ComponentModel::IExtenderProvider
public class FileListBoxArray : 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 FileListBoxArray : Microsoft.VisualBasic.Compatibility.VB6.BaseControlArray, System.ComponentModel.IExtenderProvider
type FileListBoxArray = class
    inherit BaseControlArray
    interface IExtenderProvider
Public Class FileListBoxArray
Inherits BaseControlArray
Implements IExtenderProvider
继承
属性
实现

注解

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

构造函数

FileListBoxArray()

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

FileListBoxArray(IContainer)

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

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

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

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

获取 FileListBox 中的 FileListBoxArray 的索引。Gets the index of a FileListBox in a FileListBoxArray.

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

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

SetIndex(FileListBox, Int16)

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

ShouldSerializeIndex(FileListBox)

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

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.

BindingContextChanged

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

CausesValidationChanged

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

ChangeUICues

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

ContextMenuChanged

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

CursorChanged

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

DataSourceChanged

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

DisplayMemberChanged

DisplayMember 属性的值更改时发生。Occurs when the value of the DisplayMember 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

当双击 FileListBox 中的 FileListBoxArray 控件时发生。Occurs when a FileListBox control in a FileListBoxArray 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.

DrawItem

在所有者绘制的 FileListBox 的可视方位更改时发生。Occurs when a visual aspect of an owner-drawn FileListBox changes.

EnabledChanged

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

Enter

进入控件时发生。Occurs when the control is entered.

FontChanged

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

ForeColorChanged

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

GiveFeedback

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

HelpRequested

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

ImeModeChanged

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

KeyDown

当焦点在控件上按下键时发生。Occurs when a key is pressed and the control has focus.

KeyPress

当焦点在控件上按下键时发生。Occurs when a key is pressed and the control has focus.

KeyUp

当焦点在控件上释放键时发生。Occurs when a key is released and the control has focus.

Layout

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

Leave

在输入焦点离开控件时发生。Occurs when the input focus leaves the control.

LocationChanged

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

MeasureItem

每次当必须描述一个所有者描述的 FileListBox 项,并且当列表项的大小已确定时就会发生。Occurs every time an owner-drawn FileListBox item has to be drawn and when the sizes of the list items are determined.

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.

ParentChanged

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

PathChange

在代码中设置 FileNamePath 属性以更改路径时发生。Occurs when the path is changed by setting the FileName or Path property in code.

PatternChange

在代码中设置 FileNamePattern 属性以更改文件列表模式(如“*.*”)时发生。Occurs when the file listing pattern, such as "*.*", is changed by setting the FileName or Pattern property in code.

QueryAccessibilityHelp

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

QueryContinueDrag

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

Resize

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

RightToLeftChanged

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

SelectedIndexChanged

SelectedIndex 属性更改后发生。Occurs when the SelectedIndex property has changed.

SelectedValueChanged

SelectedValue 属性更改后发生。Occurs when the SelectedValue property has changed.

SizeChanged

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

StyleChanged

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

SystemColorsChanged

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

TabIndexChanged

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

TabStopChanged

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

Validated

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

Validating

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

ValueMemberChanged

ValueMember 属性更改时发生。Occurs when the ValueMember property changes.

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)

适用于