KaxToolBarButtonCollectionAddRange Method |
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic void AddRange(
IEnumerable<KaxToolBarButton> buttons
)
Public Sub AddRange (
buttons As IEnumerable(Of KaxToolBarButton)
)
public:
void AddRange(
IEnumerable<KaxToolBarButton^>^ buttons
)
member AddRange :
buttons : IEnumerable<KaxToolBarButton> -> unit
Parameters
- buttons
- Type: System.Collections.GenericIEnumerableKaxToolBarButton
The array of KaxToolBarButton objects to append to
the end of the current KaxToolBarButtonCollection.
Examples
The following example demonstrates how to use the
AddRange method
to add multiple buttons in a single step.
KaxToolBarDropDown manageDropDown = new KaxToolBarDropDown("Manage");
KaxToolBarButton[] buttons = new KaxToolBarButton[] { new KaxToolBarButton("Users"),
new KaxToolBarButton("Orders")};
manageDropDown.Buttons.AddRange(buttons);
KaxToolBar1.Items.Add(manageDropDown);
Dim manageDropDown As KaxToolBarDropDown = New KaxToolBarDropDown("Manage")
Dim buttons() As KaxToolBarButton = {New KaxToolBarButton("Users"),
New KaxToolBarButton("Orders")}
manageDropDown.Buttons.AddRange(buttons)
KaxToolBar1.Items.Add(manageDropDown)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also