コード例 #1
0
 /// <summary>
 /// Draws the node's shape as the background.
 /// </summary>
 /// <param name="graphics">The graphics object used for drawing.</param>
 /// <param name="nvd">The node view data of the node the subitem belongs to.</param>
 /// <param name="brush">The brush to draw the node's shape.</param>
 protected void DrawBackground(Graphics graphics, NodeViewData nvd, Brush brush)
 {
     if (brush != null)
     {
         nvd.DrawShapeBackground(graphics, nvd.BoundingBox, brush);
     }
 }
コード例 #2
0
 /// <summary>
 /// Draws the node's shape as the background.
 /// </summary>
 /// <param name="graphics">The graphics object used for drawing.</param>
 /// <param name="nvd">The node view data of the node the subitem belongs to.</param>
 /// <param name="brush">The brush to draw the node's shape.</param>
 protected void DrawBackground(Graphics graphics, NodeViewData nvd, Brush brush)
 {
     if (brush != null)
     {
         nvd.DrawShapeBackground(graphics, nvd.BoundingBox, brush);
         //nvd.DrawShapeBorder(graphics, nvd.GetSubItemBoundingBox(nvd.BoundingBox, nvd.GetSubItemIndex(this)), Pens.WhiteSmoke);
     }
 }