ToolStripItemCollection.AddRange 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 ToolStripItem controls to the collection.
Overloads
AddRange(ToolStripItem[]) |
Adds an array of ToolStripItem controls to the collection. |
AddRange(ToolStripItemCollection) |
Adds a ToolStripItemCollection to the current collection. |
AddRange(ToolStripItem[])
Adds an array of ToolStripItem controls to the collection.
public:
void AddRange(cli::array <System::Windows::Forms::ToolStripItem ^> ^ toolStripItems);
public:
void AddRange(... cli::array <System::Windows::Forms::ToolStripItem ^> ^ toolStripItems);
public void AddRange (System.Windows.Forms.ToolStripItem[] toolStripItems);
public void AddRange (params System.Windows.Forms.ToolStripItem[] toolStripItems);
member this.AddRange : System.Windows.Forms.ToolStripItem[] -> unit
Public Sub AddRange (toolStripItems As ToolStripItem())
Public Sub AddRange (ParamArray toolStripItems As ToolStripItem())
Parameters
- toolStripItems
- ToolStripItem[]
An array of ToolStripItem controls.
Exceptions
The toolStripItems
parameter is null
.
The ToolStripItemCollection is read-only.
Remarks
Use this overload of AddRange to copy a ToolStripItem array to a ToolStripItemCollection. Use the overload of AddRange that takes a ToolStripItemCollection parameter to merge one ToolStripItemCollection with another.
Applies to
AddRange(ToolStripItemCollection)
Adds a ToolStripItemCollection to the current collection.
public:
void AddRange(System::Windows::Forms::ToolStripItemCollection ^ toolStripItems);
public void AddRange (System.Windows.Forms.ToolStripItemCollection toolStripItems);
member this.AddRange : System.Windows.Forms.ToolStripItemCollection -> unit
Public Sub AddRange (toolStripItems As ToolStripItemCollection)
Parameters
- toolStripItems
- ToolStripItemCollection
The ToolStripItemCollection to be added to the current collection.
Exceptions
The toolStripItems
parameter is null
.
The ToolStripItemCollection is read-only.
Remarks
Use this overload of AddRange to merge one ToolStripItemCollection with another. You typically use this method with ToolStripOverflow, and you can easily use the Add, Insert, and Remove methods to modify the merged ToolStripItemCollection.
Use the overload of AddRange that takes a ToolStripItem array to copy an array of ToolStripItem controls to a ToolStripItemCollection.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기