Export (0) Print
Expand All

Menu.MenuItemCollection.System.Collections.IList.Item Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

[C#] In C#, this property is the indexer for the Menu.MenuItemCollection class.

[Visual Basic]
Private Default Property Item( _
   ByVal index As Integer _
) As Object Implements IList.Item
[C#]
object IList.this[
   int index
] {get; set;}
[C++]
private: __property Object* System::Collections::IList::get_Item(
 int index
);
private: __property void System::Collections::IList::set_Item(
 int index,
   Object*
);
[JScript]
private function get IList.get_Item(index : int) : Object;
private function set IList.set_Item(index : int, value : Object);
-or-
private function get IList.get_Item(index : int) : Object;
private function set IList.set_Item(index : int, value : Object);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [JScript]

index

Parameters [Visual Basic, C#, C++]

index

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Menu.MenuItemCollection Class | Menu.MenuItemCollection Members | System.Windows.Forms Namespace

Show:
© 2014 Microsoft