protected override Rectangle GetTextBounds(RibbonTabGroupRendererEventArgs e) { Rectangle r = e.Bounds; r.Y += 6; r.Height -= 6; return r; }
/// <summary> /// Draws ribbon tab group. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you /// do not want default rendering to occur do not call the base implementation. You can call OnRenderRibbonTabGroup method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public override void DrawRibbonTabGroup(RibbonTabGroupRendererEventArgs e) { RibbonTabGroupPainter painter = PainterFactory.CreateRibbonTabGroupPainter(e.EffectiveStyle); if (painter is IOffice2007Painter) ((IOffice2007Painter)painter).ColorTable = m_ColorTable; painter.PaintTabGroup(e); base.DrawRibbonTabGroup(e); }
/// <summary> /// Draws ribbon tab group. If you need to provide custom rendering this is the method that you should override in your custom rendered. If you /// do not want default rendering to occur do not call the base implementation. You can call OnRenderRibbonTabGroup method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public virtual void DrawRibbonTabGroup(RibbonTabGroupRendererEventArgs e) { OnRenderRibbonTabGroup(e); }
/// <summary> /// Raises RenderRibbonTabGroup event. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void OnRenderRibbonTabGroup(RibbonTabGroupRendererEventArgs e) { if (RenderRibbonTabGroup != null) RenderRibbonTabGroup(this, e); }