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