コード例 #1
0
 /// <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);
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 /// <summary>
 /// Raises RenderMdiSystemItem event.
 /// </summary>
 /// <param name="e">Provides context information.</param>
 protected virtual void OnRenderMdiSystemItem(MdiSystemItemRendererEventArgs e)
 {
     if (RenderMdiSystemItem != null)
         RenderMdiSystemItem(this, e);
 }