WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DrawerMenuItem

    Show / Hide Table of Contents

    Class DrawerMenuItem

    A class for Navigation MenuItem in DrawerPanel

    Inheritance
    System.Object
    DrawerMenuItem
    DrawerFooter
    DrawerHeader
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class DrawerMenuItem : Control

    Constructors

    DrawerMenuItem()

    Constructor

    Declaration
    public DrawerMenuItem()

    Properties

    BackgroundImage

    Gets/Sets the BackgroundImage

    Declaration
    public override Image BackgroundImage { get; set; }
    Property Value
    Type Description
    System.Drawing.Image

    DefaultColor

    Declaration
    public Color DefaultColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    Font

    Gets or sets the font used to draw the text in DrawerMenuItem.

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type Description
    System.Drawing.Font

    HoverColor

    Gets/Sets the HoverColor

    Declaration
    public Color HoverColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    Image

    Gets / Sets the DrawerMenuItem Image

    Declaration
    public virtual Image Image { get; set; }
    Property Value
    Type Description
    System.Drawing.Image

    ItemText

    Gets/Sets the Item Text

    Declaration
    public string ItemText { get; set; }
    Property Value
    Type Description
    System.String

    Selected

    Gets/Sets the Selection state

    Declaration
    public bool Selected { get; set; }
    Property Value
    Type Description
    System.Boolean

    SelectionColor

    Gets/Sets the Selection Color

    Declaration
    public Color SelectionColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    TextAlign

    Gets/Sets the TextAlignment

    Declaration
    public TextAlignment TextAlign { get; set; }
    Property Value
    Type Description
    TextAlignment

    TextColor

    Gets/Sets the TextColor

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    TextImageRelation

    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

    CreateAccessibilityInstance()

    Declaration
    protected override AccessibleObject CreateAccessibilityInstance()
    Returns
    Type Description
    System.Windows.Forms.AccessibleObject

    OnClick(EventArgs)

    Declaration
    protected override void OnClick(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnLeave(EventArgs)

    Overrides Leave

    Declaration
    protected override void OnLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnMouseDown(MouseEventArgs)

    Overrides MouseDown

    Declaration
    protected override void OnMouseDown(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnMouseLeave(EventArgs)

    Overrides MouseLeave

    Declaration
    protected override void OnMouseLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnMouseMove(MouseEventArgs)

    Override Mouse Move

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnMouseUp(MouseEventArgs)

    Overrides MouseUp

    Declaration
    protected override void OnMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnPaint(PaintEventArgs)

    Overrides Paint Event

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    ResetDefaultColor()

    Declaration
    public void ResetDefaultColor()

    ResetHoverColor()

    Declaration
    public void ResetHoverColor()

    ResetItemText()

    Declaration
    public void ResetItemText()

    ResetSelected()

    Declaration
    public void ResetSelected()

    ResetSelectionColor()

    Declaration
    public void ResetSelectionColor()

    ResetTextAlign()

    Resets the TextAlign

    Declaration
    public void ResetTextAlign()

    ResetTextColor()

    Declaration
    public void ResetTextColor()

    ShouldSerializeDefaultColor()

    Declaration
    public bool ShouldSerializeDefaultColor()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeHoverColor()

    Declaration
    public bool ShouldSerializeHoverColor()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeItemText()

    Declaration
    public bool ShouldSerializeItemText()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeSelected()

    Declaration
    public bool ShouldSerializeSelected()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeSelectionColor()

    Declaration
    public bool ShouldSerializeSelectionColor()
    Returns
    Type Description
    System.Boolean

    ShouldSerializeTextAlign()

    Serialize the TextAlignt

    Declaration
    public bool ShouldSerializeTextAlign()
    Returns
    Type Description
    System.Boolean

    Returns true if the TextAlingment is Left

    ShouldSerializeTextColor()

    Declaration
    public bool ShouldSerializeTextColor()
    Returns
    Type Description
    System.Boolean

    WndProc(ref Message)

    Declaration
    protected override void WndProc(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved