src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/IndentBitmap.cs
/// <summary>
///     Gets the indent bitmap using the given backcolor and forecolor.
/// </summary>
/// <param name="backColor"></param>
/// <param name="foreColor"></param>
/// <returns></returns>
Gets the indent bitmap using the given backcolor and forecolor.
Gets the indent bitmap using the given backcolor and forecolor .
private Bitmap GetIndentBitmap(Color backColor, Color foreColor)
        {
            if (myIndentBmp == null
                || !Equals(backColor, myIndentBackgroundColor))
            {
                var xMid = ((myImageWidth != 0) ? (myImageWidth - MAGIC_INDENT) : myIndentWidth) / 2;
                myIndentBmp = CreateIndentBmp(backColor, foreColor, myIndentWidth, xMid, myItemHeight);
                myIndentBackgroundColor = backColor;
            }
            return myIndentBmp;
        }
private Bitmap GetIndentBitmap ( Color backColor , Color foreColor ) { if ( myIndentBmp == null || ! Equals ( backColor , myIndentBackgroundColor ) ) { var xMid = ( ( myImageWidth != 0 ) ? ( myImageWidth - MAGIC_INDENT ) : myIndentWidth ) / 2 ; myIndentBmp = CreateIndentBmp ( backColor , foreColor , myIndentWidth , xMid , myItemHeight ) ; myIndentBackgroundColor = backColor ; } return myIndentBmp ; }
Gets the indent bitmap using the given backcolor and forecolor.
Gets the indent bitmap using the given backcolor and forecolor .
None
backColor
Color
None
foreColor
Color
None