ToolStripMenuItemArray 类

定义

注意

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

提供控件的 ToolStripMenuItem 控件数组。

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

注解

ToolStripMenuArray 类为 Visual Basic 6.0 Menu 数组的运行时功能提供等效项。 它不提供 Visual Basic 6.0 控件数组的设计时功能。

注释

命名空间中的 Microsoft.VisualBasic.Compatibility.VB6 函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。

构造函数

名称 说明
ToolStripMenuItemArray()
已过时.

初始化 ToolStripMenuItemArray 类的新实例。

ToolStripMenuItemArray(IContainer)
已过时.

初始化类的新实例 ToolStripMenuItemArray ,并指定其容器。

字段

名称 说明
components
已过时.

存储控件数组的容器。

(继承自 BaseControlArray)
controlAddedAtDesignTime
已过时.

存储值,用于跟踪控件数组中的控件是在设计时还是运行时创建的。

(继承自 BaseControlArray)
controls
已过时.

存储表示控件数组中的控件的值。

(继承自 BaseControlArray)
fIsEndInitCalled
已过时.

存储一个值,该值指示控件数组容器的初始化代码是否已完成执行。

(继承自 BaseControlArray)
indices
已过时.

存储控件数组的索引。

(继承自 BaseControlArray)

属性

名称 说明
CanRaiseEvents
已过时.

获取一个值,该值指示组件是否可以引发事件。

(继承自 Component)
Container
已过时.

IContainer获取包含 .Component

(继承自 Component)
DesignMode
已过时.

获取一个值,该值指示当前是否 Component 处于设计模式。

(继承自 Component)
Events
已过时.

获取附加到此 Component对象的事件处理程序的列表。

(继承自 Component)
Item[Int16]
已过时.

获取按索引的特定元素 ToolStripMenuItemArray 。 只读。

Site
已过时.

获取或设置 ISiteComponent

(继承自 Component)

方法

名称 说明
BaseCanExtend(Object)
已过时.

获取一个值,该值指示控件是否是控件数组的成员。

(继承自 BaseControlArray)
BaseGetIndex(Object)
已过时.

获取控件数组中控件的索引。

(继承自 BaseControlArray)
BaseGetItem(Int16)
已过时.

获取控件数组中指定索引的控件。

(继承自 BaseControlArray)
BaseResetIndex(Object)
已过时.

类中 BaseControlArray 不支持。

(继承自 BaseControlArray)
BaseSetIndex(Object, Int16, Boolean)
已过时.

设置控件数组中控件的索引。

(继承自 BaseControlArray)
BaseShouldSerializeIndex(Object)
已过时.

返回一个值,该值指示控件是否是控件数组的成员。

(继承自 BaseControlArray)
CanExtend(Object)
已过时.

获取一个值,该值确定控件是否是控件 ComboBoxArray的成员。

Count()
已过时.

返回控件数组中的控件数。

(继承自 BaseControlArray)
CreateObjRef(Type)
已过时.

创建一个对象,其中包含生成用于与远程对象通信的代理所需的所有相关信息。

(继承自 MarshalByRefObject)
Dispose()
已过时.

释放该 Component命令使用的所有资源。

(继承自 Component)
Dispose(Boolean)
已过时.

释放控件数组中控件使用的非托管资源,并选择性地释放托管资源。

(继承自 BaseControlArray)
Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
GetControlInstanceType()
已过时.

重写 GetControlInstanceType()

GetEnumerator()
已过时.

返回对枚举器对象的引用,该对象用于循环访问控件数组。

(继承自 BaseControlArray)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetIndex(ToolStripMenuItem)
已过时.

获取 .. 中的ToolStripMenuItemArray索引ToolStripMenuItem

GetLifetimeService()
已过时.

检索控制此实例的生存期策略的当前生存期服务对象。

(继承自 MarshalByRefObject)
GetService(Type)
已过时.

返回一个对象,该对象表示服务由 Component 或其 Container提供的服务。

(继承自 Component)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
HookUpControlEvents(Object)
已过时.

重写 HookUpControlEvents(Object)

InitializeLifetimeService()
已过时.

获取生存期服务对象来控制此实例的生存期策略。

(继承自 MarshalByRefObject)
LBound()
已过时.

返回一个 Short 包含控件数组的最小可用下标。

(继承自 BaseControlArray)
Load(Int16)
已过时.

在控件数组中创建一个新元素。

(继承自 BaseControlArray)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
MemberwiseClone(Boolean)
已过时.

创建当前 MarshalByRefObject 对象的浅表副本。

(继承自 MarshalByRefObject)
ResetIndex(ToolStripMenuItem)
已过时.

类中 ToolStripMenuItemArray 不支持。

SetIndex(ToolStripMenuItem, Int16)
已过时.

设置初始项的ToolStripMenuItemArray索引ToolStripMenuItem

ShouldSerializeIndex(ToolStripMenuItem)
已过时.

返回一个值,该值指示一个 ToolStripMenuItem 是否是此 ToolStripMenuItemArray成员。

ToString()
已过时.

返回包含 String 的名称 Component(如果有)。 不应重写此方法。

(继承自 Component)
UBound()
已过时.

返回一个 Short 包含控件数组的最大可用下标。

(继承自 BaseControlArray)
Unload(Int16)
已过时.

从控件数组中删除控件。

(继承自 BaseControlArray)

活动

名称 说明
BackColorChanged
已过时.

BackColor 属性的值更改时发生。

CheckedChanged
已过时.

Checked 属性的值更改时发生。

CheckStateChanged
已过时.

CheckState 属性的值更改时发生。

Click
已过时.

在单击某个ToolStripMenuItemArray项时ToolStripMenuItem发生。

DisplayStyleChanged
已过时.

更改 DisplayStyle 后发生。

Disposed
已过时.

当组件通过对方法的调用 Dispose() 释放时发生。

(继承自 Component)
DoubleClick
已过时.

双击控件ToolStripMenuItemArrayToolStripMenuItem发生。

DropDownClosed
已过时.

当下拉列表部分 ToolStripMenuItem 不再可见时发生。

DropDownItemClicked
已过时.

单击时 ToolStripDropDown 发生。

DropDownOpened
已过时.

打开时 ToolStripDropDown 发生。

DropDownOpening
已过时.

在打开时 ToolStripDropDown 发生。

EnabledChanged
已过时.

Enabled 属性的值更改时发生。

ForeColorChanged
已过时.

ForeColor 属性的值更改时发生。

LocationChanged
已过时.

Location 属性的值更改时发生。

MouseDown
已过时.

当鼠标指针位于控件上并按下鼠标按钮时发生。

MouseEnter
已过时.

当鼠标指针进入控件时发生。

MouseHover
已过时.

当鼠标指针停留在控件上时发生。

MouseLeave
已过时.

当鼠标指针离开控件时发生。

MouseMove
已过时.

当鼠标指针移到控件上时发生。

MouseUp
已过时.

当鼠标指针位于控件上并释放鼠标按钮时发生。

OwnerChanged
已过时.

属性 Owner 更改时发生。

Paint
已过时.

重新绘制项时发生。

QueryAccessibilityHelp
已过时.

在向辅助功能应用程序提供帮助时 AccessibleObject 发生。

RightToLeftChanged
已过时.

RightToLeftChanged 属性值更改时发生。

TextChanged
已过时.

Text 属性值更改时发生。

VisibleChanged
已过时.

Visible 属性值更改时发生。

显式接口实现

名称 说明
ISupportInitialize.BeginInit()
已过时.

开始初始化控件。

(继承自 BaseControlArray)
ISupportInitialize.EndInit()
已过时.

结束控件的初始化。

(继承自 BaseControlArray)

适用于