Syntax

C#
public class MenuItem
Visual Basic (Declaration)
Public Class MenuItem
Visual C++
public ref class MenuItem

The type exposes the following members.

Public Constructors

  NameDescription
Public methodMenuItemMenuItemNew

Public Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Overrides Object..::ToString()().)

Protected Methods

  NameDescription
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)

Public Properties

  NameDescription
Public propertyAction
Menu item action type.
Public propertyCommand
Menu item command.
Public propertyJavaScript
JavaScript action that is executed when Action is set to JavaScript and a users clicks the menu item.
Public propertyNavigateUrl
URL of the menu item (used when Action is set to NavigateUrl).
Public propertyNavigateUrlTarget
Target of the menu item hyperlink (used when Action is set to NavigateUrl).
Public propertyText
Text of the menu item.
Public propertyToolTip
ToolTip for the menu item (appears as "title" parameter of <a> tag ).

See Also