/// <summary> /// Draws the MdiSystemItem. 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 OnRenderMdiSystemItem method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public virtual void DrawMdiSystemItem(MdiSystemItemRendererEventArgs e) { OnRenderMdiSystemItem(e); }
/// <summary> /// Draws the MdiSystemItem. 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 OnRenderMdiSystemItem method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public override void DrawMdiSystemItem(MdiSystemItemRendererEventArgs e) { MdiSystemItemPainter painter = PainterFactory.CreateMdiSystemItemPainter(e.MdiSystemItem); if (painter == null) return; if (painter is IOffice2007Painter) ((IOffice2007Painter)painter).ColorTable = m_ColorTable; painter.Paint(e); base.DrawMdiSystemItem(e); }
/// <summary> /// Raises RenderMdiSystemItem event. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void OnRenderMdiSystemItem(MdiSystemItemRendererEventArgs e) { if (RenderMdiSystemItem != null) RenderMdiSystemItem(this, e); }