using System; using System.Text; using System.Drawing; namespace DevComponents.DotNetBar { /// /// Provides data for RenderRibbonTabGroup event. /// public class RibbonTabGroupRendererEventArgs : EventArgs { /// /// Gets or sets Graphics object group is rendered on. /// public Graphics Graphics = null; /// /// Gets or sets RibbonTabItemGroup being rendered. /// public RibbonTabItemGroup RibbonTabItemGroup = null; /// /// Gets or sets the bounds of the tab group. Bounds specified here are bounds of the tab group title. GroupBounds contains the bounds /// that include all tabs that belong to the tab group. /// public Rectangle Bounds = Rectangle.Empty; /// /// Gets or sets the font that should be used to render group text. /// public Font GroupFont = null; /// /// Gets or sets group bounds including the tabs that belong to the group. /// public Rectangle GroupBounds = Rectangle.Empty; /// /// Gets or sets the effective style for the group. /// public eDotNetBarStyle EffectiveStyle = eDotNetBarStyle.Office2007; /// /// Gets whether Windows Vista glass is enabled. /// public ItemPaintArgs ItemPaintArgs = null; public RibbonTabGroupRendererEventArgs(Graphics g, RibbonTabItemGroup group, Rectangle bounds, Rectangle groupBounds, Font font, ItemPaintArgs pa, eDotNetBarStyle effectiveStyle) { this.Graphics = g; this.RibbonTabItemGroup = group; this.Bounds = bounds; this.GroupBounds = groupBounds; this.GroupFont = font; this.ItemPaintArgs = pa; this.EffectiveStyle = effectiveStyle; } } }