KaxMenuItemCollectionAddRange Method |
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic virtual void AddRange(
IEnumerable<KaxMenuItem> items
)
Public Overridable Sub AddRange (
items As IEnumerable(Of KaxMenuItem)
)
public:
virtual void AddRange(
IEnumerable<KaxMenuItem^>^ items
)
abstract AddRange :
items : IEnumerable<KaxMenuItem> -> unit
override AddRange :
items : IEnumerable<KaxMenuItem> -> unit
Parameters
- items
- Type: System.Collections.GenericIEnumerableKaxMenuItem
The array of KaxMenuItem to append to the end of the current KaxMenuItemCollection.
Examples
The following example demonstrates how to use the
AddRange method
to add multiple items in a single step.
KaxMenuItem[] items = new KaxMenuItem[] { new KaxMenuItem("First"), new KaxMenuItem("Second"), new KaxMenuItem("Third") };
KaxMenu1.Items.AddRange(items);
Dim items() As KaxMenuItem = {New KaxMenuItem("First"), New KaxMenuItem("Second"), New KaxMenuItem("Third")}
KaxMenu1.Items.AddRange(items)
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