Back to Devexpress

BarItemCustomDrawEventArgs Members

windowsforms-devexpress-dot-xtrabars-dot-baritemcustomdraweventargs-dot-underscore-members.md

latest8.7 KB
Original Source

BarItemCustomDrawEventArgs Members

Provides data for the BarManager.CustomDrawItem event.

Constructors

NameDescription
BarItemCustomDrawEventArgs(GraphicsCache, RibbonItemViewInfo)Initializes a new instance of the BarItemCustomDrawEventArgs class with the specified settings.
BarItemCustomDrawEventArgs(GraphicsCache, BarLinkViewInfo)Initializes a new instance of the BarItemCustomDrawEventArgs class with the specified settings.
BarItemCustomDrawEventArgs(GraphicsCache)Initializes a new instance of the BarItemCustomDrawEventArgs class with the specified settings.

Fields

NameDescription
Empty staticProvides a value to use with events that do not have event data. Inherited from EventArgs.

Properties

NameDescription
BoundsReturns this bar item link’s bounds.
CacheProvides access to this bar item link’s graphics cache.
DrawOnlyTextGets whether or not this bar item link should display only its caption.
DropDownBoundsGets the area occupied by the drop-down menu for this bar item link.
GlyphGets the icon that should be displayed for this bar item link by default.
GlyphBoundsGets the area occupied by this bar item link’s default icon.
GraphicsProvides access to the Graphics object associated with this bar item link.
HandledGets or sets whether or not this item link is painted manually.
LinkInfoSpecifies the info for the bar item link related to this event.
RibbonItemInfoSpecifies the info for the ribbon item related to this event.
ShouldDrawCheckBoxGets whether or not this bar item link should display a check box.
ShouldDrawDropDownGets whether or not this bar item link should display its drop-down menu by default.
ShouldDrawEditorGets whether or not this bar item link should display an editor.
StateGets the current bar item link state (normal, selected, pressed, checked, disabled etc.).
TextGets the default text that should be displayed by this bar item link.
TextBoundsGets the area occupied by this bar item link’s default text.

Methods

NameDescription
Draw()Draws the related item link entirely with its default appearance.
DrawArrow()Draws a drop-down arrow with its default appearance.
DrawBackground()Draws the default background for the current bar item link.
DrawBorder()Draws a border with its default appearance.
DrawCheckBox()Draws a checkbox with its default appearance for this bar item link.
DrawDropDownBackground()Draws the default background for this bar item link’s drop-down menu.
DrawEditor()Draws a required editor with default appearance settings within this bar item link.
DrawGlyph()Draws the default icon for this bar item link.
DrawHtml(HtmlTemplate, DxHtmlPainterContext, Action<DxHtmlPainterArgs>)Paints the required HTML template inside an element that raised this event. The context parameter allows you to assign an object that transfers mouse events to template elements.
DrawHtml(HtmlTemplate, Action<DxHtmlPainterArgs>)Paints the required HTML template inside an element that raised this event.
DrawText()Draws the default text for this bar item link.
DrawText(AppearanceObject)Draws the default text with custom appearance settings for this bar item link.
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.
GetHashCode()Serves as the default hash function. Inherited from Object.
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.

See Also

BarItemCustomDrawEventArgs Class

DevExpress.XtraBars Namespace