menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeMenuItem - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeMenuItem

    TreeMenuItem

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

    Constructors

    TreeMenuItem()

    Comstructor

    Declaration
    public TreeMenuItem()

    Fields

    currentindex

    current index of the item

    Declaration
    protected int currentindex
    Field Value
    Type
    System.Int32

    Properties

    Font

    Gets or sets the System.Drawing.Font value of the TreeMenuItem control.

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

    HasChildren

    Returns true if it has sub items

    Declaration
    public bool HasChildren { get; }
    Property Value
    Type
    System.Boolean

    ItemBackColor

    Gets or sets the Item BackColor

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

    ItemHoverColor

    Gets or sets the Item HoverColor

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

    Items

    Gets or sets the value to the items of the the TreeNavigator.

    Declaration
    public TreeMenuItemCollection Items { get; set; }
    Property Value
    Type
    TreeMenuItemCollection

    Selected

    Gets or sets the Itemselection

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

    SelectedColor

    Gets or sets the SelectedItem BackColor

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

    SelectedItemForeColor

    Gets or sets the Selected Item ForeColor

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

    Visible

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

    Methods

    CreateAccessibilityInstance()

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

    Dispose(Boolean)

    Disposing all the events used

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    OnForeColorChanged(EventArgs)

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

    OnKeyDown(KeyEventArgs)

    Declaration
    protected override void OnKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.KeyEventArgs e

    OnMouseDown(MouseEventArgs)

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

    OnMouseEnter(EventArgs)

    Override for mouse enter

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

    EventArgs

    OnMouseLeave(EventArgs)

    Override for mouse leave

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

    EventArgs

    OnMouseMove(MouseEventArgs)

    Raises the System.Windows.Forms.Control.MouseMove event.

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

    A System.Windows.Forms.MouseEventArgs that contains the event data.

    OnPaint(PaintEventArgs)

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

    OnSizeChanged(EventArgs)

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

    OnTextChanged(EventArgs)

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

    ResetItems()

    Resets the Items in the ItemsCollection

    Declaration
    public void ResetItems()

    SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

    Declaration
    protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    System.Int32 width
    System.Int32 height
    System.Windows.Forms.BoundsSpecified specified

    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 - 2025 Syncfusion Inc. All Rights Reserved