A class for Navigation MenuItem in DrawerPanel
Inheritance
System.Object
DrawerMenuItem
Assembly: Syncfusion.Tools.Windows.dll
public class DrawerMenuItem : Control
Constructors
Declaration
Properties
Gets/Sets the BackgroundImage
Declaration
public override Image BackgroundImage { get; set; }
Property Value
Type |
System.Drawing.Image |
Declaration
public Color DefaultColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Declaration
public override Font Font { get; set; }
Property Value
Declaration
public Color HoverColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets / Sets the DrawerMenuItem Image
Declaration
public virtual Image Image { get; set; }
Property Value
Type |
System.Drawing.Image |
Declaration
public string ItemText { get; set; }
Property Value
Gets/Sets the Selection state
Declaration
public bool Selected { get; set; }
Property Value
Gets/Sets the Selection Color
Declaration
public Color SelectionColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets/Sets the TextAlignment
Declaration
public TextAlignment TextAlign { get; set; }
Property Value
Declaration
public Color TextColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or sets the position of text and image relative to each other.
Declaration
public TextImageRelation TextImageRelation { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.TextImageRelation |
The System.Windows.Forms.TextImageRelation enumeration that specifies how the button's
image is aligned relative to the button's text. The default value is TextImageRelation.ImageBeforeText
|
Methods
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
System.Windows.Forms.AccessibleObject |
Declaration
protected override void OnClick(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
public void ResetDefaultColor()
Declaration
public void ResetHoverColor()
Declaration
public void ResetItemText()
Declaration
public void ResetSelected()
Declaration
public void ResetSelectionColor()
Declaration
public void ResetTextAlign()
Declaration
public void ResetTextColor()
Declaration
public bool ShouldSerializeDefaultColor()
Returns
Declaration
public bool ShouldSerializeHoverColor()
Returns
Declaration
public bool ShouldSerializeItemText()
Returns
Declaration
public bool ShouldSerializeSelected()
Returns
Declaration
public bool ShouldSerializeSelectionColor()
Returns
Declaration
public bool ShouldSerializeTextAlign()
Returns
Type |
Description |
System.Boolean |
Returns true if the TextAlingment is Left
|
Declaration
public bool ShouldSerializeTextColor()
Returns
Declaration
protected override void WndProc(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|