ToolStripItemCollection.Item[] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the item at the specified index.
Overloads
Item[Int32] |
Gets the item at the specified index. |
Item[String] |
Gets the item with the specified name. |
Item[Int32]
- Source:
- ToolStripItemCollection.cs
- Source:
- ToolStripItemCollection.cs
- Source:
- ToolStripItemCollection.cs
Gets the item at the specified index.
public:
virtual property System::Windows::Forms::ToolStripItem ^ default[int] { System::Windows::Forms::ToolStripItem ^ get(int index); };
public virtual System.Windows.Forms.ToolStripItem this[int index] { get; }
member this.Item(int) : System.Windows.Forms.ToolStripItem
Default Public Overridable ReadOnly Property Item(index As Integer) As ToolStripItem
Parameters
- index
- Int32
The zero-based index of the item to get.
Property Value
The ToolStripItem located at the specified position in the ToolStripItemCollection.
Applies to
Item[String]
- Source:
- ToolStripItemCollection.cs
- Source:
- ToolStripItemCollection.cs
- Source:
- ToolStripItemCollection.cs
Gets the item with the specified name.
public:
virtual property System::Windows::Forms::ToolStripItem ^ default[System::String ^] { System::Windows::Forms::ToolStripItem ^ get(System::String ^ key); };
public virtual System.Windows.Forms.ToolStripItem this[string key] { get; }
public virtual System.Windows.Forms.ToolStripItem? this[string? key] { get; }
member this.Item(string) : System.Windows.Forms.ToolStripItem
Default Public Overridable ReadOnly Property Item(key As String) As ToolStripItem
Parameters
- key
- String
The name of the item to get.
Property Value
The ToolStripItem with the specified name.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET