Click or drag to resize
KaxMenuItemCollection Class
A collection of KaxMenuItem objects in a KaxMenu control.
Inheritance Hierarchy
SystemObject
  System.Web.UIStateManagedCollection
    Kettic.AspNet.ControlsControlItemCollection
      Kettic.AspNet.ControlsKaxMenuItemCollection

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public class KaxMenuItemCollection : ControlItemCollection, 
	IList<KaxMenuItem>, ICollection<KaxMenuItem>, IEnumerable<KaxMenuItem>, 
	IEnumerable

The KaxMenuItemCollection type exposes the following members.

Constructors
  NameDescription
Public methodKaxMenuItemCollection
Initializes a new instance of the KaxMenuItemCollection class.
Top
Methods
  NameDescription
Public methodCode exampleAdd
Appends the specified KaxMenuItem object to the end of the current KaxMenuItemCollection.
Public methodCode exampleAddRange
Appends the specified array of KaxMenuItem objects to the end of the current KaxMenuItemCollection.
Public methodContains
Determines whether the specified KaxMenuItem object is in the current KaxMenuItemCollection.
Public methodCopyTo
Copies the contents of the current KaxMenuItemCollection into the specified array of KaxMenuItem objects.
Public methodCode exampleFindItem
Returns the first KaxMenuItem that matches the conditions defined by the specified predicate. The predicate should returns a boolean value.
Public methodFindItemByAttribute
Searches the items in the collection for a KaxMenuItem which contains the specified attribute and attribute value.
Public methodFindItemByText(String)
Searches the KaxMenuItemCollection control for the first KaxMenuItem with a Text property equal to the specified value.
Public methodFindItemByText(String, Boolean)
Searches the KaxMenu control for the first KaxMenuItem with a Text property equal to the specified value.
Public methodFindItemByValue(String)
Searches the KaxMenuItemCollection control for the first KaxMenuItem with a Value property equal to the specified value.
Public methodFindItemByValue(String, Boolean)
Searches the KaxMenu control for the first KaxMenuItem with a Value property equal to the specified value.
Public methodIndexOf
Determines the index of the specified KaxMenuItem object in the collection.
Public methodInsert
Inserts the specified KaxMenuItem object in the current KaxMenuItemCollection at the specified index location.
Public methodRemove
Removes the specified KaxMenuItem object from the current KaxMenuItemCollection.
Public methodRemoveAt
Removes the KaxMenuItem object at the specified index from the current KaxMenuItemCollection.
Top
Properties
  NameDescription
Public propertyItem
Gets the KaxMenuItem object at the specified index in the current KaxMenuItemCollection.
Top
Remarks

The KaxMenuItemCollection class represents a collection of KaxMenuItem objects. The KaxMenuItem objects in turn represent menu items within a KaxMenu control.

  • Use the indexer to programmatically retrieve a single KaxMenuItem from the collection, using array notation.
  • Use the Count property to determine the total number of menu items in the collection.
  • Use the Add method to add menu items in the collection.
  • Use the Remove method to remove menu items from the collection.
See Also