using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar
{
///
/// Provides data for CheckBoxItem rendering events.
///
public class CheckBoxItemRenderEventArgs : EventArgs
{
///
/// Gets or sets Graphics object group is rendered on.
///
public Graphics Graphics = null;
///
/// Gets or sets the reference to CheckBoxItem being rendered.
///
public CheckBoxItem CheckBoxItem = null;
///
/// ColorScheme object that is used to provide colors for rendering check box item in legacy styles like Office 2003. Office 2007 style
/// uses color tables provided by renderers.
///
public ColorScheme ColorScheme = null;
///
/// Indicates whether item is in Right-To-Left environment.
///
public bool RightToLeft = false;
///
/// Gets or sets the text font.
///
public Font Font = null;
///
/// Gets or sets the ItemPaintArgs reference.
///
internal ItemPaintArgs ItemPaintArgs;
///
/// Creates new instance of the object and provides default values.
///
/// Reference to Graphics object
/// Reference to CheckBoxItem
/// Reference to legacy ColorScheme
/// Indicates the font for the text.
/// Indicates whether item is in Right-To-Left environment.
public CheckBoxItemRenderEventArgs(Graphics g, CheckBoxItem item, ColorScheme cs, Font f, bool rtl)
{
this.Graphics = g;
this.CheckBoxItem = item;
this.ColorScheme = cs;
this.RightToLeft = rtl;
this.Font = f;
}
}
}