Back to Devexpress

DXMenuItem Members

windowsforms-devexpress-dot-utils-dot-menu-dot-dxmenuitem-dot-underscore-members.md

latest14.2 KB
Original Source

DXMenuItem Members

A regular menu item.

Constructors

NameDescription
DXMenuItem()Initializes a new instance of the DXMenuItem class with default settings.
DXMenuItem(String, DXMenuItemPriority)Initializes a new instance of the DXMenuItem class with the specified caption and display priority.
DXMenuItem(String, EventHandler, DXMenuItemPriority)Initializes a new instance of the DXMenuItem class with the specified caption, display priority and Click event handler.
DXMenuItem(String, EventHandler, SvgImage, DXMenuItemPriority)Initializes a new instance of the DXMenuItem class with the specified settings.
DXMenuItem(String, EventHandler, Image, Image, Image, Image, DXMenuItemPriority)Initializes a new instance of the DXMenuItem class with the specified settings.
DXMenuItem(String, EventHandler, Image, Image, Image, Image)Initializes a new instance of the DXMenuItem class with the specified settings.
DXMenuItem(String, EventHandler, Image, Image)Initializes a new instance of the DXMenuItem class with the specified settings.
DXMenuItem(String, EventHandler, Image)Initializes a new instance of the DXMenuItem class with the specified caption, image and Click event handler
DXMenuItem(String, EventHandler)Initializes a new instance of the DXMenuItem class with the specified caption and Click event handler
DXMenuItem(String)Initializes a new instance of the DXMenuItem class with the specified caption.

Properties

NameDescription
AllowGlyphSkinningGets or sets whether the current DXMenuItem icon should be painted in the DXMenuItem‘s foreground color.
AllowHtmlTextGets or sets whether HTML tags are used to format the menu item’s caption.
AppearanceProvides access to the appearance settings used to paint the DXMenuItem in the normal state.
AppearanceDisabledProvides access to the appearance settings used to paint the DXMenuItem in the disbled state.
AppearanceHoveredProvides access to the appearance settings used to paint the DXMenuItem in the hovered state.
BeginGroupGets or sets whether the current menu item starts a group.
CaptionSpecifies the text displayed within the menu item.
CloseMenuOnClickThis member supports the internal infrastructure and is not intended to be used directly from your code.
CloseOwnerMenuOnlyOnClickThis member supports the internal infrastructure and is not intended to be used directly from your code.
CollectionGets the menu item collection which owns the current menu item.
CommandGets or sets the ICommand whose Execute(Object) method will be called when the Click event is invoked.
CommandParameterGets or sets the parameter that is passed to the command specified by the Command property.
EnabledGets or sets whether the menu item is enabled.
HasImageReturns whether or not this DXMenuItem has an image assigned.
ImageThis property is obsolete. Use the DXMenuItem.ImageOptions.Image property to display an image in the menu item.
ImageDisabledThis property is obsolete. Use the DXMenuItem.ImageOptions.ImageDisabled property to specify an image representing the menu item in the disabled state.
ImageOptionsProvides access to settings that allow you to set up raster and vector icons for this DXMenuItem.
IsRightToLeftGets or sets whether the menu item is aligned to support locales using right-to-left fonts.
LargeImageGets or sets a large image for the current menu item. This property is obsolete. Use the DXMenuItem.ImageOptions.LargeImage property instead.
LargeImageDisabledGets or sets a large image displayed in the current menu item when it is in the disabled state. This property is obsolete. Use the DXMenuItem.ImageOptions.LargeImageDisabled property instead.
OwnerGets or sets the object that owns this DXMenuItem.
PriorityGets or sets the display priority for the current item in a RadialMenu.
ShortcutGets or sets a shortcut displayed within the menu item
ShowHotKeyPrefixObsolete. Gets or sets whether the ampersand (‘&’) character, when it is found in the item’s DXMenuItem.Caption, acts as a shortcut prefix, or it is displayed as is.
SuperTipGets or sets a super tip for this DXMenuItem.
SvgImageGets or sets the vector image. This property is obsolete. Use the DXMenuItem.ImageOptions.SvgImage property instead.
TagGets or sets the data associated with the menu item.
VisibleGets or sets whether the menu item is visible.

Methods

NameDescription
BindCommand(Expression<Action>, Object, Func<Object>)Uses the command selector to find an appropriate parameterized command in the source and bind it to this DXMenuItem.
BindCommand(Object, Func<Object>)Binds the specific parameterized command to this DXMenuItem.
BindCommand<T>(Expression<Action<T>>, Object, Func<T>)Uses the command selector to find an appropriate parameterized command of the target type in the source and bind it to this DXMenuItem.
Dispose()Releases all the resources used by the current object.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GenerateClickEvent()Invokes the event handler assigned to the DXMenuItem.Click event.
GetCheckmarkSignInsideBox()
GetHashCode()Serves as the default hash function. Inherited from Object.
GetImage(ISvgPaletteProvider)Returns the actual raster image displayed by this DXMenuItem.
GetImageHorizontalOffset()
GetImageSize()Returns the size of the image displayed by this DXMenuItem.
GetIsRightToLeft()Returns whether the current menu item is actually aligned to support locales using right-to-left fonts.
GetSideStripTextIndent()
GetType()Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
ToString()Returns a string that represents the current object. Inherited from Object.

Events

NameDescription
ClickOccurs when the menu item’s functionality needs to be invoked.
CommandCanExecuteChangedOccurs when the CanExecute(Object) status of the Command has changed.
CommandChangedOccurs after the value of the Command property has changed.
CommandParameterChangedOccurs after the value of the CommandParameter property has changed.

See Also

DXMenuItem Class

DevExpress.Utils.Menu Namespace