/// <summary> /// Draws the form caption 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 OnRenderFormCaptionBackground method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public virtual void DrawFormCaptionBackground(FormCaptionRendererEventArgs e) { OnRenderFormCaptionBackground(e); }
/// <summary> /// Draws the form caption 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 OnRenderFormCaptionBackground method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public override void DrawFormCaptionBackground(FormCaptionRendererEventArgs e) { FormCaptionPainter painter = PainterFactory.CreateFormCaptionPainter(e.Form); if (painter == null) return; if (painter is IOffice2007Painter) ((IOffice2007Painter)painter).ColorTable = m_ColorTable; painter.PaintCaptionBackground(e); base.DrawFormCaptionBackground(e); }
/// <summary> /// Raises RenderFormCaptionBackground event. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void OnRenderFormCaptionBackground(FormCaptionRendererEventArgs e) { if (RenderFormCaptionBackground != null) RenderFormCaptionBackground(this, e); }