src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/IndentBitmap.cs
/// <summary>
///     Get data used to draw the indent bitmaps
/// </summary>
/// <param name="backColor">Color to be used in background</param>
/// <param name="requireButtonPaths">True if paths for button drawing are required.  Paths are only required if buttons will be drawn, and XP themes are not available.</param>
/// <param name="buttonExtent">Half the size of a button. The returned paths should be centered at (0, 0).</param>
/// <returns>Colors and paths used to draw the indent bitmap.</returns>
Get data used to draw the indent bitmaps
Get data used to draw the indent bitmaps
protected virtual IndentBitmapData GetIndentBitmapData(Color backColor, bool requireButtonPaths, int buttonExtent)
        {
            var data = new IndentBitmapData();
            data.BackgroundColor = backColor;
            data.LineColor = SystemColors.GrayText;
            data.LineStyle = DashStyle.Dot;
            data.BoxColor = SystemColors.GrayText;
            data.PlusMinusColor = SystemColors.WindowText;
            GenerateExpanderIconPoints(buttonExtent, ref data);
            if (requireButtonPaths)
            {
                GraphicsPath plusPath;
                GraphicsPath minusPath;
                GraphicsPath boxPath;
                GeneratePlusMinusPaths(buttonExtent, out plusPath, out minusPath, out boxPath);
                data.SetPaths(plusPath, minusPath, boxPath, true);
            }
            return data;
        }
protected virtual IndentBitmapData GetIndentBitmapData ( Color backColor , bool requireButtonPaths , int buttonExtent ) { var data = new IndentBitmapData ( ) ; data . BackgroundColor = backColor ; data . LineColor = SystemColors . GrayText ; data . LineStyle = DashStyle . Dot ; data . BoxColor = SystemColors . GrayText ; data . PlusMinusColor = SystemColors . WindowText ; GenerateExpanderIconPoints ( buttonExtent , ref data ) ; if ( requireButtonPaths ) { GraphicsPath plusPath ; GraphicsPath minusPath ; GraphicsPath boxPath ; GeneratePlusMinusPaths ( buttonExtent , out plusPath , out minusPath , out boxPath ) ; data . SetPaths ( plusPath , minusPath , boxPath , true ) ; } return data ; }
Get data used to draw the indent bitmaps
Get data used to draw the indent bitmaps
// Update the expander points given the button extent.
Colors and paths used to draw the indent bitmap.
Colors and paths used to draw the indent bitmap .
backColor
Color
Color to be used in background
Color to be used in background
requireButtonPaths
bool
True if paths for button drawing are required.  Paths are only required if buttons will be drawn, and XP themes are not available.
True if paths for button drawing are required . Paths are only required if buttons will be drawn and XP themes are not available .
buttonExtent
int
Half the size of a button. The returned paths should be centered at (0, 0).
Half the size of a button . The returned paths should be centered at ( 0 0 ) .