ToolBar.ToolBarButtonCollection.IList.Add(Object) Method
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.
Adds the specified toolbar button to the end of the toolbar button collection.
virtual int System.Collections.IList.Add(System::Object ^ button) = System::Collections::IList::Add;
int IList.Add (object button);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (button As Object) As Integer Implements IList.Add
Parameters
- button
- Object
The ToolBarButton to be added after all existing buttons.
Returns
The zero-based index value of the ToolBarButton added to the collection.
Implements
Exceptions
button
is not a ToolBarButton.
Remarks
This member is an explicit interface member implementation. It can be used only when the ToolBar.ToolBarButtonCollection is cast to an IList interface.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET