Skip to main content
Bar

BarItemCustomDrawEventArgs Members

Provides data for the BarManager.CustomDrawItem event.

Constructors

Name Description
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

Name Description
Empty static Provides a value to use with events that do not have event data. Inherited from EventArgs.

Properties

Name Description
Bounds Returns this bar item link’s bounds.
Cache Provides access to this bar item link’s graphics cache.
DrawOnlyText Gets whether or not this bar item link should display only its caption.
DropDownBounds Gets the area occupied by the drop-down menu for this bar item link.
Glyph Gets the icon that should be displayed for this bar item link by default.
GlyphBounds Gets the area occupied by this bar item link’s default icon.
Graphics Provides access to the Graphics object associated with this bar item link.
Handled Gets or sets whether or not this item link is painted manually.
LinkInfo Specifies the info for the bar item link related to this event.
RibbonItemInfo Specifies the info for the ribbon item related to this event.
ShouldDrawCheckBox Gets whether or not this bar item link should display a check box.
ShouldDrawDropDown Gets whether or not this bar item link should display its drop-down menu by default.
ShouldDrawEditor Gets whether or not this bar item link should display an editor.
State Gets the current bar item link state (normal, selected, pressed, checked, disabled etc.).
Text Gets the default text that should be displayed by this bar item link.
TextBounds Gets the area occupied by this bar item link’s default text.

Methods

Name Description
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) static Determines 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() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines 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