using System; using System.Text; using System.Drawing; namespace DevComponents.DotNetBar { /// /// Provides data for ButtonItem rendering. /// public class ButtonItemRendererEventArgs { /// /// Gets or sets Graphics object group is rendered on. /// public Graphics Graphics = null; /// /// Gets the reference to ButtonItem instance being rendered. /// public ButtonItem ButtonItem = null; /// /// Reference to internal data. /// internal ItemPaintArgs ItemPaintArgs = null; /// /// Indicates whether to cancel system rendering of the item. /// public bool Cancel = false; /// /// Creates new instance of the object. /// public ButtonItemRendererEventArgs() { } /// /// Creates new instance of the object and initializes it with default values /// /// Reference to Graphics object. /// Reference to ButtonItem object. public ButtonItemRendererEventArgs(Graphics g, ButtonItem button) { this.Graphics = g; this.ButtonItem = button; } /// /// Creates new instance of the object and initializes it with default values /// /// Reference to Graphics object. /// Reference to ButtonItem object. internal ButtonItemRendererEventArgs(Graphics g, ButtonItem button, ItemPaintArgs pa) { this.Graphics = g; this.ButtonItem = button; this.ItemPaintArgs = pa; } } }