using System;
using System.Drawing;
namespace DevComponents.Tree
{
	/// 
	/// 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.Tree.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;
//		/// Indicates whether mouse is over the expand part
//		public bool MouseOver=false;
		/// 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;
		/// 
		/// Creates new instance of the class and initializes it with default values.
		/// 
		/// Reference to graphics object.
		public NodeExpandPartRendererEventArgs(Graphics g)
		{
			this.Graphics = g;
		}
	}
}