Esempio n. 1
0
 /// <summary>
 /// Draws RibbonTabItem. 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 OnRenderRibbonTabItem method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawRibbonTabItem(RibbonTabItemRendererEventArgs e)
 {
     OnRenderRibbonTabItem(e);
 }
Esempio n. 2
0
        /// <summary>
        /// Draws RibbonTabItem. 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 OnRenderRibbonTabItem method so events can occur.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        public override void DrawRibbonTabItem(RibbonTabItemRendererEventArgs e)
        {
            ButtonItemPainter painter = PainterFactory.CreateRibbonTabItemPainter(e.RibbonTabItem);
            if (painter != null)
            {
                if (painter is IOffice2007Painter)
                    ((IOffice2007Painter)painter).ColorTable = m_ColorTable;
                painter.PaintButton(e.RibbonTabItem, e.ItemPaintArgs);
            }

            base.DrawRibbonTabItem(e);
        }
Esempio n. 3
0
 /// <summary>
 /// Raises RenderRibbonTabItem event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderRibbonTabItem(RibbonTabItemRendererEventArgs e)
 {
     if (RenderRibbonTabItem != null)
         RenderRibbonTabItem(this, e);
 }