WinForms

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

    Show / Hide Table of Contents

    Class TreeNodeAdvPaintBackgroundEventArgs

    Represents an event args that are passed in the NodeBackGround event of the TreeViewAdv control. Contains information about the appearance of the node background and the location and sizes of different parts of the node.

    Inheritance
    System.Object
    System.EventArgs
    TreeNodeAdvPaintBackgroundEventArgs
    Inherited Members
    System.EventArgs.Empty
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class TreeNodeAdvPaintBackgroundEventArgs : EventArgs

    Constructors

    TreeNodeAdvPaintBackgroundEventArgs(TreeNodeAdv, Graphics, Boolean, Boolean, Boolean, Boolean, BrushInfo)

    Initialize a new instance of TreeNodeAdvPaintBackgroundEventArgs class.

    Declaration
    public TreeNodeAdvPaintBackgroundEventArgs(TreeNodeAdv node, Graphics g, bool selected, bool active, bool fullRowSelect, bool hotTracked, BrushInfo brushInfo)
    Parameters
    Type Name Description
    TreeNodeAdv node

    The node associated with event

    System.Drawing.Graphics g

    The instance of Graphics class

    System.Boolean selected

    Indicates whether the Node is selected

    System.Boolean active

    Indicates whether the Node is active

    System.Boolean fullRowSelect

    Indicates whether FullRowSelect is enabled

    System.Boolean hotTracked

    Indicates whether HotTracking is enabled

    BrushInfo brushInfo

    The BrushInfo with which the background will be painted

    Properties

    Active

    Gets or sets a value indicating whether the node is Active.

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

    Bounds

    Get the bounds of TreeNodeAdv.

    Declaration
    public Rectangle Bounds { get; }
    Property Value
    Type Description
    System.Drawing.Rectangle

    BrushInfo

    Gets or sets the BrushInfo with which the background will be painted by default, if you don't mark this event as handled.

    Declaration
    public BrushInfo BrushInfo { get; set; }
    Property Value
    Type Description
    BrushInfo
    Remarks

    You can optionally change the properties of this BrushInfo object or provide a new BrushInfo without marking this event as handled Handled.

    FullRowSelect

    Gets a value indicating whether the FullRowSelect is enabled.

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

    Graphics

    Gets the System.Drawing.Graphics object associated with the event.

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

    Handled

    Gets or sets a value indicating whether the event was handled.

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

    HotTracked

    Gets or sets a value indicating whether the HotTracking is enabled.

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

    Node

    Gets the TreeNodeAdv which is associated with the action.

    Declaration
    public TreeNodeAdv Node { get; }
    Property Value
    Type Description
    TreeNodeAdv

    Selected

    Gets or sets a value indicating whether the node is selected.

    Declaration
    public bool Selected { get; set; }
    Property Value
    Type Description
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved