using System;
using System.Drawing;
using DevComponents.DotNetBar;
namespace DevComponents.AdvTree.Display
{
///
/// Provides information for cell rendering methods and events.
///
public class NodeCellRendererEventArgs:NodeRendererEventArgs
{
///
/// Gets or sets the cell being rendered.
///
public Cell Cell=null;
///
/// Gets or sets absolute cell bounds.
///
public Rectangle CellBounds=Rectangle.Empty;
///
/// Gets or sets the internal cell offset.
///
internal Point CellOffset=Point.Empty;
///
/// Gets or sets the color scheme.
///
internal ColorScheme ColorScheme = null;
internal Image CheckBoxImageChecked = null;
internal Image CheckBoxImageUnChecked = null;
internal Image CheckBoxImageIndeterminate = null;
internal ItemPaintArgs ItemPaintArgs = null;
///
/// Creates new instance of the class.
///
public NodeCellRendererEventArgs():base(null,null,Rectangle.Empty,null)
{
}
///
/// Creates new instance of the class and initializes it with default values.
///
/// Reference to graphics object.
/// Reference to context node.
/// Reference to node bounds
/// Reference to cell style
/// Reference to cell
/// Reference to cell bounds
public NodeCellRendererEventArgs(Graphics g, Node node, Rectangle bounds, ElementStyle style, Cell cell, Rectangle cellBounds):base(g,node,bounds,style)
{
this.Cell = cell;
this.CellBounds = cellBounds;
}
}
}