/// <summary> /// Draws CrumbBarOverflowButton. 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 OnRenderCrumbBarOverflowItem method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public override void DrawCrumbBarOverflowItem(ButtonItemRendererEventArgs e) { CrumbBarItemViewPainter painter = PainterFactory.GetCrumbBarItemViewPainter(e.ButtonItem); if (painter != null) { if (painter is IOffice2007Painter) ((IOffice2007Painter)painter).ColorTable = m_ColorTable; painter.PaintOverflowButton(e.ButtonItem, e.ItemPaintArgs); } base.DrawCrumbBarOverflowItem(e); }
/// <summary> /// Draws CrumbBarOverflowButton. 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 OnRenderCrumbBarOverflowItem method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public virtual void DrawCrumbBarOverflowItem(ButtonItemRendererEventArgs e) { OnRenderCrumbBarOverflowItem(e); }
/// <summary> /// Draws ButtonItem. 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 OnRenderButtonItem method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public override void DrawButtonItem(ButtonItemRendererEventArgs e) { ButtonItemPainter painter = PainterFactory.CreateButtonPainter(e.ButtonItem); if (painter != null) { if (painter is IOffice2007Painter) ((IOffice2007Painter)painter).ColorTable = m_ColorTable; painter.PaintButton(e.ButtonItem, e.ItemPaintArgs); } base.DrawButtonItem(e); }
/// <summary> /// Raises RenderCrumbBarOverflowItem event. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void OnRenderCrumbBarOverflowItem(ButtonItemRendererEventArgs e) { if (RenderCrumbBarOverflowItem != null) RenderCrumbBarOverflowItem(this, e); }
/// <summary> /// Draws CrumbBarItemView. 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 OnRenderCrumbBarItemView method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public virtual void DrawCrumbBarItemView(ButtonItemRendererEventArgs e) { OnRenderCrumbBarItemView(e); }
/// <summary> /// Raises RenderCrumbBarItemView event. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void OnRenderCrumbBarItemView(ButtonItemRendererEventArgs e) { if (RenderCrumbBarItemView != null) RenderCrumbBarItemView(this, e); }
/// <summary> /// Draws ButtonItem. 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 OnRenderButtonItem method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public virtual void DrawButtonItem(ButtonItemRendererEventArgs e) { OnRenderButtonItem(e); }
/// <summary> /// Raises RenderButtonItem event. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void OnRenderButtonItem(ButtonItemRendererEventArgs e) { if (RenderButtonItem != null) RenderButtonItem(this, e); }