src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/IndentBitmap.cs
/// <summary>
///     Draws the tree expander polygon.
/// </summary>
Draws the tree expander polygon.
Draws the tree expander polygon .
private static void DrawTreeExpanderPolygon(Graphics graphics, Color foreColor, IndentBitmapData data, bool expanded)
        {
            Brush brush = null;
            Pen pen = null;
            try
            {
                if (expanded)
                {
                    EnsureBrush(ref brush, foreColor);
                    graphics.FillPolygon(brush, data.ExpandedIconPoints);
                }
                else
                {
                    EnsurePen(ref pen, foreColor);
                    graphics.DrawPolygon(pen, data.UnexpandedIconPoints);
                }
            }
            finally
            {
                CleanPen(ref pen, foreColor);
                CleanBrush(ref brush, foreColor);
            }
        }
private static void DrawTreeExpanderPolygon ( Graphics graphics , Color foreColor , IndentBitmapData data , bool expanded ) { Brush brush = null ; Pen pen = null ; try { if ( expanded ) { EnsureBrush ( ref brush , foreColor ) ; graphics . FillPolygon ( brush , data . ExpandedIconPoints ) ; } else { EnsurePen ( ref pen , foreColor ) ; graphics . DrawPolygon ( pen , data . UnexpandedIconPoints ) ; } } finally { CleanPen ( ref pen , foreColor ) ; CleanBrush ( ref brush , foreColor ) ; } }
Draws the tree expander polygon.
Draws the tree expander polygon .
graphics
Graphics
foreColor
Color
data
IndentBitmapData
expanded
bool