SourceCode/PROMS/DotNetBar Source Code/TreeGX/Display/NodeCellRendererEventArgs.cs

54 lines
1.6 KiB
C#

using System;
using System.Drawing;
namespace DevComponents.Tree.Display
{
/// <summary>
/// Provides information for cell rendering methods and events.
/// </summary>
public class NodeCellRendererEventArgs:NodeRendererEventArgs
{
/// <summary>
/// Gets or sets the cell being rendered.
/// </summary>
public Cell Cell=null;
/// <summary>
/// Gets or sets absolute cell bounds.
/// </summary>
public Rectangle CellBounds=Rectangle.Empty;
/// <summary>
/// Gets or sets absolute bounds for cell text.
/// </summary>
public Rectangle CellTextBounds = Rectangle.Empty;
/// <summary>
/// Gets or sets the internal cell offset.
/// </summary>
internal Point CellOffset=Point.Empty;
/// <summary>
/// Creates new instance of the class.
/// </summary>
public NodeCellRendererEventArgs():base(null,null,Rectangle.Empty,null)
{
}
/// <summary>
/// Creates new instance of the class and initializes it with default values.
/// </summary>
/// <param name="g">Reference to graphics object.</param>
/// <param name="node">Reference to context node.</param>
/// <param name="bounds">Reference to node bounds</param>
/// <param name="style">Reference to cell style</param>
/// <param name="cell">Reference to cell</param>
/// <param name="cellBounds">Reference to cell bounds</param>
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;
}
}
}