/// <summary> /// Draws item container. 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 OnRenderItemContainer method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public virtual void DrawItemContainer(ItemContainerRendererEventArgs e) { OnRenderItemContainer(e); }
/// <summary> /// Draws item container. 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 OnRenderItemContainer method so events can occur. /// </summary> /// <param name="e">Provides context information.</param> public override void DrawItemContainer(ItemContainerRendererEventArgs e) { ItemContainerPainter painter = PainterFactory.CreateItemContainerPainter(e.ItemContainer); if (painter != null) { if (painter is IOffice2007Painter) ((IOffice2007Painter)painter).ColorTable = m_ColorTable; painter.PaintBackground(e); } base.DrawItemContainer(e); }
/// <summary> /// Raises RenderItemContainer event. /// </summary> /// <param name="e">Provides context information.</param> protected virtual void OnRenderItemContainer(ItemContainerRendererEventArgs e) { if (RenderItemContainer != null) RenderItemContainer(this, e); }