using System;
using System.Drawing;
namespace DevComponents.AdvTree
{
///
/// Represents event arguments for RenderExpandPart event.
///
public class NodeExpandPartRendererEventArgs:EventArgs
{
///
/// Gets or sets reference to Graphics object, canvas node is rendered on.
///
public System.Drawing.Graphics Graphics=null;
///
/// Gets or sets the reference to Node object being rendered.
///
public DevComponents.AdvTree.Node Node=null;
/// Expand part bounds
public Rectangle ExpandPartBounds=Rectangle.Empty;
/// Expand part border color
public Color BorderColor=Color.Empty;
/// Expand part line color
public Color ExpandLineColor=Color.Empty;
/// Expand part background color
public Color BackColor=Color.Empty;
/// Expand part target gradient background color
public Color BackColor2=Color.Empty;
/// Gradient angle
public int BackColorGradientAngle=90;
/// Expand part image when node is expanded
public Image ExpandImage=null;
/// Expand part image when node is collapsed
public Image ExpandImageCollapse=null;
/// Internal support for expand button types
internal eExpandButtonType ExpandButtonType=eExpandButtonType.Ellipse;
/// Gets whether mouse is over expand part
public bool IsMouseOver = false;
///
/// Creates new instance of the class and initializes it with default values.
///
/// Reference to graphics object.
public NodeExpandPartRendererEventArgs(Graphics g)
{
this.Graphics = g;
}
}
}