alexa
menu

WinForms

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

    Show / Hide Table of Contents

    Class LeafItemDrawingEventArgs

    Provides data for the LeafItemDrawing event in the TreeMap control.

    Inheritance
    System.Object
    LeafItemDrawingEventArgs
    Namespace: Syncfusion.Windows.Forms.TreeMap
    Assembly: Syncfusion.TreeMap.Windows.dll
    Syntax
    public class LeafItemDrawingEventArgs : CancelEventArgs
    Remarks

    Enables customization of the rendering of individual leaf items, including their size, color, label, and associated data.

    Constructors

    LeafItemDrawingEventArgs()

    Declaration
    public LeafItemDrawingEventArgs()

    Properties

    Color

    Gets or sets the brush used to fill the leaf item in LeafItemDrawingEventArgs.

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

    Data

    Gets or sets the data object associated with the leaf item in LeafItemDrawingEventArgs.

    Declaration
    public object Data { get; set; }
    Property Value
    Type
    System.Object

    Graphics

    Gets or sets the graphics context used for drawing the leaf item in LeafItemDrawingEventArgs.

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

    Label

    Gets or sets the label text associated with the leaf item in LeafItemDrawingEventArgs.

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

    RectSize

    Gets or sets the rectangle that defines the size and position of the leaf item to be drawn in LeafItemDrawingEventArgs.

    Declaration
    public Rectangle RectSize { get; set; }
    Property Value
    Type
    System.Drawing.Rectangle
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved