KaxMenuGetAllItems Method |
Gets a linear list of all items in the KaxMenu
control.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic IList<KaxMenuItem> GetAllItems()
Public Function GetAllItems As IList(Of KaxMenuItem)
public:
IList<KaxMenuItem^>^ GetAllItems()
member GetAllItems : unit -> IList<KaxMenuItem>
Return Value
Type:
IListKaxMenuItem
An
IList<KaxMenuItem> containing all items (from all hierarchy
levels).
Remarks
Use the GetAllItems method to obtain a linear collection of all
items regardless their place in the hierarchy.
Examples
The following example demonstrates how to disable all items within a
KaxMenu control.
void Page_Load(object sender, EventArgs e)
{
foreach (KaxMenuItem item in KaxMenu1.GetAllItems())
{
item.Enabled = false;
}
}
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
For Each childItem As KaxMenuItem In KaxMenu1.GetAllItems
childItem.Enabled = False
Next
End Sub
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