Beispiel #1
0
 /// <summary>
 /// Raises RenderItemContainer event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderItemContainerSeparator(ItemContainerSeparatorRendererEventArgs e)
 {
     if (RenderItemContainerSeparator != null)
         RenderItemContainerSeparator(this, e);
 }
Beispiel #2
0
        /// <summary>
        /// Draws the separator for an item inside of 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 OnRenderItemContainerSeparator method so events can occur.
        /// </summary>
        /// <param name="e">Provides context information.</param>
        public override void DrawItemContainerSeparator(ItemContainerSeparatorRendererEventArgs e)
        {
            base.DrawItemContainerSeparator(e);

            ItemContainerPainter painter = PainterFactory.CreateItemContainerPainter(e.ItemContainer);
            if (painter != null)
            {
                if (painter is IOffice2007Painter)
                    ((IOffice2007Painter)painter).ColorTable = m_ColorTable;
                painter.PaintItemSeparator(e);
            }
        }
Beispiel #3
0
 /// <summary>
 /// Draws the separator for an item inside of 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 OnRenderItemContainerSeparator method so events can occur.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 public virtual void DrawItemContainerSeparator(ItemContainerSeparatorRendererEventArgs e)
 {
     OnRenderItemContainerSeparator(e);
 }