/// <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); }
/// <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); }
/// <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); }