Class DrawToolbarItemEventArgs
Inheritance
System.Object
DrawToolbarItemEventArgs
Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class DrawToolbarItemEventArgs : DrawItemEventArgs
Constructors
DrawToolbarItemEventArgs(Graphics, Boolean, Boolean, Font, Rectangle, Int32, DrawItemState, Color, Color, Color, Rectangle, DrawToolbarItemEventArgs.DrawDefaultBackground, DrawToolbarItemEventArgs.DrawDefaultBorders, DrawToolbarItemEventArgs.DrawDefaultInterior)
Declaration
public DrawToolbarItemEventArgs(Graphics g, bool mouseDown, bool dropdown, Font font, Rectangle bounds, int index, DrawItemState state, Color foreColor, Color backColor, Color backColor2, Rectangle boundsInterior, DrawToolbarItemEventArgs.DrawDefaultBackground defaultDrawBackground, DrawToolbarItemEventArgs.DrawDefaultBorders defaultDrawBorders, DrawToolbarItemEventArgs.DrawDefaultInterior defaultDrawInterior)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Boolean | mouseDown | |
System.Boolean | dropdown | |
System.Drawing.Font | font | |
System.Drawing.Rectangle | bounds | |
System.Int32 | index | |
System.Windows.Forms.DrawItemState | state | |
System.Drawing.Color | foreColor | |
System.Drawing.Color | backColor | |
System.Drawing.Color | backColor2 | |
System.Drawing.Rectangle | boundsInterior | |
DrawToolbarItemEventArgs.DrawDefaultBackground | defaultDrawBackground | |
DrawToolbarItemEventArgs.DrawDefaultBorders | defaultDrawBorders | |
DrawToolbarItemEventArgs.DrawDefaultInterior | defaultDrawInterior |
Properties
BackColor2
Declaration
public Color BackColor2 { get; }
Property Value
Type |
---|
System.Drawing.Color |
BoundsInterior
Declaration
public Rectangle BoundsInterior { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
DropDown
Declaration
public bool DropDown { get; }
Property Value
Type |
---|
System.Boolean |
MouseDown
Declaration
public bool MouseDown { get; }
Property Value
Type |
---|
System.Boolean |
Methods
DrawBackground()
Declaration
public override void DrawBackground()
DrawBorders()
Declaration
public void DrawBorders()
DrawInterior()
Declaration
public void DrawInterior()