using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar
{
///
/// Provides data for the ProgressBarItem rendering events.
///
public class ProgressBarItemRenderEventArgs : EventArgs
{
///
/// Gets or sets Graphics object group is rendered on.
///
public Graphics Graphics = null;
///
/// Gets or sets the reference to ProgressBarItem being rendered.
///
public ProgressBarItem ProgressBarItem = null;
///
/// Indicates whether item is in Right-To-Left environment.
///
public bool RightToLeft = false;
///
/// Gets or sets the text font.
///
public Font Font = null;
///
/// Creates new instance of the object and provides default values.
///
/// Reference to Graphics object
/// Reference to ProgressBarItem
/// Indicates the font for the text.
/// Indicates whether item is in Right-To-Left environment.
public ProgressBarItemRenderEventArgs(Graphics g, ProgressBarItem item, Font f, bool rtl)
{
this.Graphics = g;
this.ProgressBarItem = item;
this.RightToLeft = rtl;
this.Font = f;
}
}
}