示例#1
0
 /// <summary>
 /// Draws ribbon bar dialog launcher button. 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 OnRenderRibbonDialogLauncher method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawRibbonDialogLauncher(RibbonBarRendererEventArgs e)
 {
     OnRenderRibbonDialogLauncher(e);
 }
示例#2
0
        /// <summary>
        /// Draws ribbon bar dialog launcher button. 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 OnRenderPopupToolbarBackground method so events can occur.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        public override void DrawRibbonDialogLauncher(RibbonBarRendererEventArgs e)
        {
            DialogLauncherPainter painter = PainterFactory.CreateRibbonBarPainter(e.RibbonBar);
            if (painter is IOffice2007Painter)
                ((IOffice2007Painter)painter).ColorTable = m_ColorTable;
            painter.PaintDialogLauncher(e);

            base.DrawRibbonDialogLauncher(e);
        }
示例#3
0
 /// <summary>
 /// Raises RenderRibbonDialogLauncher event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderRibbonDialogLauncher(RibbonBarRendererEventArgs e)
 {
     if (RenderRibbonDialogLauncher != null)
         RenderRibbonDialogLauncher(this, e);
 }