Ejemplo n.º 1
0
 /// <summary>
 /// Draws the SystemCaptionItem. 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 OnRenderSystemCaptionItem method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawSystemCaptionItem(SystemCaptionItemRendererEventArgs e)
 {
     OnRenderSystemCaptionItem(e);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Draws the SystemCaptionItem. 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 OnRenderSystemCaptionItem method so events can occur.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        public override void DrawSystemCaptionItem(SystemCaptionItemRendererEventArgs e)
        {
            SystemCaptionItemPainter painter = PainterFactory.CreateSystemCaptionItemPainter(e.SystemCaptionItem);

            if (painter == null)
                return;

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

            painter.Paint(e);

            base.DrawSystemCaptionItem(e);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Raises RenderSystemCaptionItem event event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderSystemCaptionItem(SystemCaptionItemRendererEventArgs e)
 {
     if (RenderSystemCaptionItem != null)
         RenderSystemCaptionItem(this, e);
 }