Exemple #1
0
        /// <summary>
        /// Draws the background of Quick Access Toolbar on Ribbon Control. 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 OnRenderQuickAccessToolbarBackground method so events can occur.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        public override void DrawQuickAccessToolbarBackground(RibbonControlRendererEventArgs e)
        {
            base.DrawQuickAccessToolbarBackground(e);

            RibbonControlPainter painter = PainterFactory.CreateRibbonControlPainter(e.RibbonControl);
            if (painter == null)
                return;

            if (painter is IOffice2007Painter)
                ((IOffice2007Painter)painter).ColorTable = m_ColorTable;

            painter.PaintQuickAccessToolbarBackground(e);
        }
Exemple #2
0
 /// <summary>
 /// Draws the background of Quick Access Toolbar on Ribbon Control. 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 OnRenderQuickAccessToolbarBackground method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawQuickAccessToolbarBackground(RibbonControlRendererEventArgs e)
 {
     OnRenderQuickAccessToolbarBackground(e);
 }
Exemple #3
0
        /// <summary>
        /// Draws the form caption text for the Ribbon Control. 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 OnRenderRibbonFormCaptionText method so events can occur.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        public override void DrawRibbonFormCaptionText(RibbonControlRendererEventArgs e)
        {
            base.DrawRibbonFormCaptionText(e);

            RibbonControlPainter painter = PainterFactory.CreateRibbonControlPainter(e.RibbonControl);
            if (painter == null)
                return;

            if (painter is IOffice2007Painter)
                ((IOffice2007Painter)painter).ColorTable = m_ColorTable;

            painter.PaintCaptionText(e);
        }
Exemple #4
0
 /// <summary>
 /// Raises RenderQuickAccessToolbarBackground event event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderQuickAccessToolbarBackground(RibbonControlRendererEventArgs e)
 {
     if (RenderQuickAccessToolbarBackground != null)
         RenderQuickAccessToolbarBackground(this, e);
 }
Exemple #5
0
 /// <summary>
 /// Draws the form caption text for the Ribbon Control. 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 OnRenderRibbonFormCaptionText method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawRibbonFormCaptionText(RibbonControlRendererEventArgs e)
 {
     OnRenderRibbonFormCaptionText(e);
 }
Exemple #6
0
 /// <summary>
 /// Raises RenderRibbonFormCaptionText event event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderRibbonFormCaptionText(RibbonControlRendererEventArgs e)
 {
     if (RenderRibbonFormCaptionText != null)
         RenderRibbonFormCaptionText(this, e);
 }
Exemple #7
0
 /// <summary>
 /// Draws the background of the Ribbon Control. 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 OnRenderRibbonControlBackground method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawRibbonControlBackground(RibbonControlRendererEventArgs e)
 {
     OnRenderRibbonControlBackground(e);
 }
Exemple #8
0
        ///// <summary>
        ///// Raises RenderRibbonBarBackground event.
        ///// </summary>
        ///// <param name="e">Provides context information.</param>
        //protected virtual void OnRenderRibbonBarBackground(RibbonBarRendererEventArgs e)
        //{
        //    if (RenderRibbonBarBackground != null)
        //        RenderRibbonBarBackground(this, e);
        //}
        ///// <summary>
        ///// Draws ribbon bar background. 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 OnRenderRibbonBarBackground method so events can occur.
        ///// </summary>
        ///// <param name="e">Provides context information.</param>
        //public virtual void DrawRibbonBarBackground(RibbonBarRendererEventArgs e)
        //{
        //    OnRenderRibbonBarBackground(e);
        //}

        ///// <summary>
        ///// Raises RenderRibbonBarTitle event.
        ///// </summary>
        ///// <param name="e">Provides context information.</param>
        //protected virtual void OnRenderRibbonBarTitle(RibbonBarRendererEventArgs e)
        //{
        //    if (RenderRibbonBarTitle != null)
        //        RenderRibbonBarTitle(this, e);
        //}
        ///// <summary>
        ///// Draws ribbon bar title. 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 OnRenderRibbonBarTitle method so events can occur.
        ///// </summary>
        ///// <param name="e">Provides context information.</param>
        //public virtual void DrawRibbonBarTitle(RibbonBarRendererEventArgs e)
        //{
        //    OnRenderRibbonBarTitle(e);
        //}

        /// <summary>
        /// Raises RenderRibbonControlBackground event event.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        protected virtual void OnRenderRibbonControlBackground(RibbonControlRendererEventArgs e)
        {
            if (RenderRibbonControlBackground != null)
                RenderRibbonControlBackground(this, e);
        }