The C1MenuItem type exposes the following members.

Constructors

  NameDescription
Public methodC1MenuItem
Default constructor.

Methods

  NameDescription
Public methodActivateMenuItem
Activates the menu item.
Public methodAddChild
Add child
(Inherited from UIElement.)
Public methodAddCssClass (Overrides UIElementAddCssClass(String).)
Protected methodAddCssClassBeforeInsert (Overrides C1MenuItemOwner..::..AddCssClassBeforeInsert()()()().)
Public methodAddItemElement (Inherited from C1MenuItemOwner.)
Public methodAssignPropertiesState
Assigns new properties state hash.
(Inherited from UIElement.)
Public methodBeginUpdate
Begin Update.
(Inherited from UIElement.)
Public methodCalculateCurrentLevel
Returns zero-based Level of current item.
(Inherited from C1MenuItemBase.)
Protected methodCreateChildControls (Overrides C1MenuItemBase..::..CreateChildControls()()()().)
Public methodCreateInstance
Creates the instance of the class. Type of the class can be determined by value of the DOM element's className.
(Overrides UIElementCreateInstance(DOMElement).)
Public methodDisplaySubMenu
Display sub menu if any.
Public methodDispose
Releases unmanaged and - optionally - managed resources.
(Inherited from UIElement.)
Public methodEndUpdate
End Update.
(Inherited from UIElement.)
Public methodFocusFirstChild
Focuses the first child menu item.
Public methodFocusNext
Set active focus to the next selectable sibling item.
Public methodFocusParent
Set active focus to the parent item.
Public methodFocusPrev
Set active focus to the previous selectable sibling item.
Protected methodGetConditionalImageUrl (Inherited from C1MenuItemBase.)
Public methodGetFirstChildFocusableItem
Returns first focusable child menu item. Returns null if focusable item not found in Items collection.
Protected methodGetNestedGroupOrientation (Overrides C1MenuItemOwner..::..GetNestedGroupOrientation()()()().)
Public methodGetPrevFocusableItem
Returns next sibling focusable menu item.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasMenuItems
Determines whether this menu item has child menu items.
Public methodHideSubMenu
Hides sub menu.
Public methodInitialize
Called when the menu item is initialized.
(Inherited from C1MenuItemOwner.)
Public methodInitializeItems
InitializeItems.
(Inherited from C1MenuItemOwner.)
Protected methodInitializeScrollBehavior (Inherited from C1MenuItemOwner.)
Protected methodInternalInitialize
Internal initialize.
(Inherited from C1MenuItemOwner.)
Public methodInvalidate
Invalidates the entire surface of the control and causes the control to be redrawn. Do Layout actions here.
(Inherited from UIElement.)
Public methodIsDOMVisible
Returns true if control's container element is visible.
(Inherited from UIElement.)
Public methodIsSelectableItem
whether this menu item is selectable
(Overrides C1MenuItemBase..::..IsSelectableItem()()()().)
Public methodOnClick
Called when the mouse clicks the menu item.
Public methodOnMouseDown
Called when the mouse moves down the menu item.
Public methodOnMouseOut
Called when the mouse moves away from the menu item.
Public methodOnMouseOver
Called when the mouse moves over them menu item.
Public methodOnMouseUp
Called when the mouse moves up the menu item.
Protected methodParentScrollBehaviorInitialized (Inherited from C1MenuItemOwner.)
Protected methodRecurCheckEnabledState (Inherited from C1MenuItemOwner.)
Protected methodRecurInitMenuItemElement (Inherited from C1MenuItemBase.)
Public methodRemoveCssClass (Overrides UIElementRemoveCssClass(String).)
Public methodRemoveItemElement (Inherited from C1MenuItemOwner.)
Protected methodSetNestedGroupOrientation
Set sub-menu or nested group orientation.
(Inherited from C1MenuItemOwner.)
Public methodToggleCssClass
Toggle CssClass for DOM element.
(Inherited from UIElement.)
Public methodToggleDisplaySubMenu
Show sub menu if sub menu is hidden or hide sub menu if sub menu is shown.
Public methodToLocaleString (Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Protected methodUpdateNestedGroupContainerCompoundCssClass (Inherited from C1MenuItemOwner.)

Fields

  NameDescription
Protected field_owner (Inherited from C1MenuItemBase.)
Protected field_propertiesState (Inherited from UIElement.)
Protected field_scrollBehavior (Inherited from C1MenuItemOwner.)
Public fieldElement
Associated DOM Element.
(Inherited from UIElement.)
Protected fieldEvents
Event handlers field.
(Inherited from C1MenuItemBase.)
Public fieldImgElement
Element with Image.
(Inherited from C1MenuItemBase.)
Public fieldMenuItemElement
MenuItem element (first element after Li tag).
(Inherited from C1MenuItemBase.)
Public fieldNestedGroupContainer
NestedGroup container element. Null if this item does not have sub menu or nested group.
(Inherited from C1MenuItemOwner.)
Public fieldScrollContainer
(Inherited from C1MenuItemOwner.)
Public fieldTextElement
Element with text.
(Inherited from C1MenuItemBase.)
Public fieldUID
Unique ID of the this UIElement.
(Inherited from UIElement.)

Properties

  NameDescription
Public propertyAccessKey
Gets or sets access key for menu item. If user press specified keyboard shortcut then focus moves on this menu item. If menu item locates in sub menu then path hierarchy of the submenus will be opened to display menu item.
Public propertyChecked
Gets or sets a value indicating whether the C1MenuItem is checked.
Public propertyChildren
Gets the list of child UIElements contained in this UIElement.
(Inherited from UIElement.)
Public propertyClientID
Gets associated ClientID.
(Inherited from UIElement.)
Protected propertyClientType
Gets client type of C1MenuItem
(Overrides C1MenuItemBase..::..ClientType.)
Public propertyCollapseAnimation
Collapse Animation effect.
Public propertyCollapseDelay
Collapse delay in milliseconds before sub menu starts hiding. Default value is 100.
Public propertyCollapseDuration
Collapse Animation duration in milliseconds.
Public propertyCollapseEasing
Specifies the transition for collapse animation.
Public propertyDisabledImageUrl
Url path to image that will be displayed for the disabled item.
(Inherited from C1MenuItemBase.)
Public propertyDisplayVisible
Gets or sets a value that indicates whether a server control is rendered as UI on the page.
(Inherited from C1MenuItemBase.)
Public propertyEnabled
Gets or sets a value indicating whether the Menu item is enabled.
(Overrides C1MenuItemOwner..::..Enabled.)
Public propertyExpandAnimation
Expand Animation effect.
Public propertyExpandDelay
Expand delay in milliseconds before sub menu starts popups. Default value is 100.
Public propertyExpandDuration
Expand Animation duration in milliseconds.
Public propertyExpandEasing
Specifies the transition for expand animation.
Public propertyFirstSibling
Gets the first sibling item.
(Inherited from C1MenuItemBase.)
Protected propertyFlowRight
Gets or sets a value that indicates whether or not children will flow to the right side of the control.
(Inherited from C1MenuItemOwner.)
Public propertyGroup
Gets or sets whether child Items will be grouped within this item.
(Overrides C1MenuItemBase..::..Group.)
Public propertyHasChildren
Gets a value that indicates the UIElement has a non-empty Children()()()() collection.
(Inherited from UIElement.)
Public propertyHeader
Gets or sets whether the item is header and will be used as group title. This means what heading tags h1?h6 will be used to render text inside item.
(Overrides C1MenuItemBase..::..Header.)
Public propertyID
Gets the ID of the DOM element.
(Inherited from UIElement.)
Public propertyImagePosition
Gets or sets which side, left or right, the image will be rendered from the menu item.
(Inherited from C1MenuItemBase.)
Public propertyImageUrl
Gets or sets the path to an image to display for the item. Default value is empty string.
(Inherited from C1MenuItemBase.)
Public propertyIndex
index of the menuitem.
(Inherited from C1MenuItemBase.)
Public propertyIsInitialized
Gets a value indicating whether this instance is initialized.
(Inherited from UIElement.)
Public propertyIsUpdating
Gets a value indicating whether this instance is updating.
(Inherited from UIElement.)
Protected propertyItemList
Gets the itemList container. null if this item does not have sub menu or nested group.
(Inherited from C1MenuItemOwner.)
Public propertyItems (Inherited from C1MenuItemOwner.)
Public propertyLastSibling
Gets the last sibling item.
(Inherited from C1MenuItemBase.)
Public propertyLevel
Gets zero-based Level of the current sub menu.
(Inherited from C1MenuItemBase.)
Public propertyMenu
Returns the instance of the top level menu.
(Inherited from C1MenuItemBase.)
Public propertyMouseOverImageUrl
Gets or sets the Url path to the image that will be displayed for the mouse over item.
Public propertyNavigateUrl
Gets or sets the URL to link to when the hyperlink is clicked in the item. Default value is empty string.
Public propertyNestedGroupCheckable (Inherited from C1MenuItemOwner.)
Public propertyNestedGroupHeight
Gets or sets sub menu or nested group height in pixels.
(Inherited from C1MenuItemOwner.)
Public propertyNestedGroupOrientation
Sub-menu or nested group orientation.
(Inherited from C1MenuItemOwner.)
Public propertyNestedGroupWidth
Gets or sets sub menu or nested group width in pixels.
(Inherited from C1MenuItemOwner.)
Public propertyNextSibling
Gets the next sibling item.
(Inherited from C1MenuItemBase.)
Public propertyOffsetSize
Gets Offset size of the DOM element(offsetWidth and offsetHeight).
(Inherited from UIElement.)
Public propertyOwner
Owner of C1menuitem
(Inherited from C1MenuItemBase.)
Public propertyParent
Gets the UIElement's parent, or null if this is the root element.
(Inherited from UIElement.)
Public propertyPopupBehavior
Gets instance of the PopupBehavior class that used to popup nested sub menu.
Public propertyPrevSibling
Gets the previous sibling item.
(Inherited from C1MenuItemBase.)
Public propertyPropertiesState
Hash object what contains values of the properties.
(Inherited from UIElement.)
Public propertyScrollBehavior
Gets instance of the ScrollBehavior class that used to scroll grouped menu items.
(Inherited from C1MenuItemOwner.)
Public propertySeparator
Gets or sets whether the item is separator. If item is separator then this item automatically becomes unfocusable. For example, keyboard navigation will skip items marked as separator.
(Overrides C1MenuItemBase..::..Separator.)
Public propertySubMenuExpandDirection
Sub menu expand direction.
Public propertyTarget
Gets or sets the target window or frame to display the Web page content linked to when the menu item is clicked or enter key pressed. Default value is empty string.
Public propertyText
Gets or sets the text caption for the menu item.
(Inherited from C1MenuItemBase.)
Public propertyToolTip
Gets or sets tooltip text that will be displayed when the mouse is over the item.
Public propertyValue
Gets or sets the value for the menu item.
(Inherited from C1MenuItemBase.)
Public propertyVisible
Gets or sets visibility state of the element.
(Inherited from UIElement.)

Events

  NameDescription
Public eventHidden
Add or removes the event handler for the Hidden event.
Public eventHiding
Adds or removes the event handler for the Hiding event.
Public eventShowing
Adds or removes the event handler for the Showing event.
Public eventShown
Adds or removes the event handler for the Shown event.

See Also