MenuItemArray Class
Provides a control array of MenuItem controls.
Assembly: Microsoft.VisualBasic.Compatibility (in Microsoft.VisualBasic.Compatibility.dll)
System::MarshalByRefObject
System.ComponentModel::Component
Microsoft.VisualBasic.Compatibility.VB6::BaseControlArray
Microsoft.VisualBasic.Compatibility.VB6::MenuItemArray
| Name | Description | |
|---|---|---|
![]() | MenuItemArray() | Initializes a new instance of the MenuItemArray class. |
![]() | MenuItemArray(IContainer^) | Initializes a new instance of the MenuItemArray class, specifying its container. |
| Name | Description | |
|---|---|---|
![]() | CanRaiseEvents | Gets a value indicating whether the component can raise an event.(Inherited from Component.) |
![]() | Container | Gets the IContainer that contains the Component.(Inherited from Component.) |
![]() | DesignMode | |
![]() | Events | |
![]() | Item[Int16] | Gets a specific element of a MenuItemArray by index. Read-only. |
![]() | Site |
| Name | Description | |
|---|---|---|
![]() | BaseCanExtend(Object^) | Gets a value that indicates whether a control is a member of a control array.(Inherited from BaseControlArray.) |
![]() | BaseGetIndex(Object^) | Gets the index of a control in a control array.(Inherited from BaseControlArray.) |
![]() | BaseGetItem(Int16) | Gets the control for a specified index in a control array.(Inherited from BaseControlArray.) |
![]() | BaseResetIndex(Object^) | Not supported in the BaseControlArray class.(Inherited from BaseControlArray.) |
![]() | BaseSetIndex(Object^, Int16, Boolean) | Sets the index for a control in a control array.(Inherited from BaseControlArray.) |
![]() | BaseShouldSerializeIndex(Object^) | Returns a value that indicates whether a control is a member of a control array. (Inherited from BaseControlArray.) |
![]() | CanExtend(Object^) | Gets a value that determines whether a control is a member of a MenuItemArray. |
![]() | Count() | Returns the number of controls in a control array.(Inherited from BaseControlArray.) |
![]() | CreateObjRef(Type^) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.) |
![]() | Dispose() | |
![]() | Dispose(Boolean) | Releases the unmanaged resources that are used by a control in a control array and optionally releases the managed resources.(Inherited from BaseControlArray.) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | |
![]() | GetControlInstanceType() | This API supports the product infrastructure and is not intended to be used directly from your code. Overrides GetControlInstanceType.(Overrides BaseControlArray::GetControlInstanceType().) |
![]() | GetEnumerator() | Returns a reference to an enumerator object, which is used to iterate over a control array.(Inherited from BaseControlArray.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetIndex(MenuItem^) | Gets the index of a MenuItem in a MenuItemArray. |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetService(Type^) | |
![]() | GetType() | |
![]() | HookUpControlEvents(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Overrides HookUpControlEvents.(Overrides BaseControlArray::HookUpControlEvents(Object^).) |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | LBound() | Returns a Short that contains the smallest available subscript for a control array.(Inherited from BaseControlArray.) |
![]() | Load(Int16) | Creates a new element in a control array.(Inherited from BaseControlArray.) |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.) |
![]() | ResetIndex(MenuItem^) | The ResetIndex method is not supported in the MenuItemArray class. |
![]() | SetIndex(MenuItem^, Int16) | Sets the index of the initial MenuItem in a MenuItemArray. |
![]() | ShouldSerializeIndex(MenuItem^) | Returns a value that indicates whether a MenuItem is a member of this MenuItemArray. |
![]() | ToString() | |
![]() | UBound() | Returns a Short that contains the largest available subscript for a control array.(Inherited from BaseControlArray.) |
![]() | Unload(Int16) | Removes a control from a control array.(Inherited from BaseControlArray.) |
| Name | Description | |
|---|---|---|
![]() | components | Stores the container for a control array.(Inherited from BaseControlArray.) |
![]() | controlAddedAtDesignTime | Stores values to track whether a control in a control array was created at design time or at run time.(Inherited from BaseControlArray.) |
![]() | controls | Stores values that represent the controls in a control array.(Inherited from BaseControlArray.) |
![]() | fIsEndInitCalled | Stores a value indicating whether the initialization code for a control array's container has finished executing.(Inherited from BaseControlArray.) |
![]() | indices | Stores the indices for a control array.(Inherited from BaseControlArray.) |
| Name | Description | |
|---|---|---|
![]() | Click | Occurs when a MenuItem in a MenuItemArray is clicked. |
![]() | Disposed | |
![]() | DrawItem | Occurs when a visual aspect of an owner-drawn MenuItem changes. |
![]() | MeasureItem | Occurs each time an owner-drawn MenuItem needs to be drawn. |
![]() | Popup | Occurs before a menu item's list of menu items is displayed. |
![]() | Select | Occurs when the user rests the mouse pointer over a menu item. |
| Name | Description | |
|---|---|---|
![]() ![]() | ISupportInitialize::BeginInit() | Begins the initialization of the control. (Inherited from BaseControlArray.) |
![]() ![]() | ISupportInitialize::EndInit() | Ends the initialization of a control.(Inherited from BaseControlArray.) |
The MenuItemArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 MenuItem array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note |
|---|
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. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation. |
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.








