RichTextBoxArray 类

定义

警告

此 API 现已过时。

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

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

注解

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

构造函数

RichTextBoxArray()

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

RichTextBoxArray(IContainer)

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

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

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

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

获取 RichTextBox 中的 RichTextBoxArray 的索引。Gets the index of a RichTextBox in a RichTextBoxArray.

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

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

SetIndex(RichTextBox, Int16)

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

ShouldSerializeIndex(RichTextBox)

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

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)

事件

AcceptsTabChanged

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

BackColorChanged

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

BindingContextChanged

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

BorderStyleChanged

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

CausesValidationChanged

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

ChangeUICues

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

Click

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

ClientSizeChanged

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

ContentsResized

当调整控件内容的大小时发生。Occurs when contents within the control are resized.

ContextMenuChanged

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

ContextMenuStripChanged

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

ControlAdded

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

ControlRemoved

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

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

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

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.

HelpRequested

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

HideSelectionChanged

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

HScroll

当用户单击控件的水平滚动条时发生。Occurs when the user clicks the horizontal scroll bar of the control.

ImeChange

当用户在中文版的 Windows 操作系统上切换输入方法时发生。Occurs when the user switches input methods on an Asian version of the Windows operating system.

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.

LinkClicked

当用户在控件文本内的链接上单击时发生。Occurs when the user clicks on a link within the text of the control.

LocationChanged

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

MarginChanged

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

ModifiedChanged

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

MultilineChanged

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

ParentChanged

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

Protected

当用户尝试修改控件中受保护的文本时发生。Occurs when the user attempts to modify protected text in the control.

QueryAccessibilityHelp

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

ReadOnlyChanged

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

RegionChanged

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

Resize

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

RightToLeftChanged

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

SelectionChanged

控件内的选定文本更改时发生。Occurs when the selection of text within the control 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.

TextChanged

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

Validated

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

Validating

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

VisibleChanged

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

VScroll

当用户单击控件的垂直滚动条时发生。Occurs when the user clicks the vertical scroll bars of the control.

显式接口实现

ISupportInitialize.BeginInit()

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

(继承自 BaseControlArray)
ISupportInitialize.EndInit()

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

(继承自 BaseControlArray)

适用于