src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/IndentBitmap.cs
/// <summary>
///     Generates the points which represent the tree expander in expanded/unexpanded state, and updates the data parameter.
/// </summary>
/// <param name="buttonExtent"></param>
/// <param name="data"></param>
/// <returns></returns>
Generates the points which represent the tree expander in expanded/unexpanded state, and updates the data parameter.
Generates the points which represent the tree expander in expanded / unexpanded state and updates the data parameter .
private static IndentBitmapData GenerateExpanderIconPoints(int buttonExtent, ref IndentBitmapData data)
        {
            var p = (buttonExtent * 7) / 10;
            data.UnexpandedIconPoints = new[]
                {
                    new Point(-p, -p * 2),
                    new Point(-p, p * 2),
                    new Point(p, 0)
                };
            data.ExpandedIconPoints = new[]
                {
                    new Point(p, -p * 2),
                    new Point(p, p),
                    new Point(-2 * p, p)
                };
            return data;
        }
private static IndentBitmapData GenerateExpanderIconPoints ( int buttonExtent , ref IndentBitmapData data ) { var p = ( buttonExtent * 7 ) / 10 ; data . UnexpandedIconPoints = new [ ] { new Point ( - p , - p * 2 ) , new Point ( - p , p * 2 ) , new Point ( p , 0 ) } ; data . ExpandedIconPoints = new [ ] { new Point ( p , - p * 2 ) , new Point ( p , p ) , new Point ( - 2 * p , p ) } ; return data ; }
Generates the points which represent the tree expander in expanded/unexpanded state, and updates the data parameter.
Generates the points which represent the tree expander in expanded / unexpanded state and updates the data parameter .
None
buttonExtent
int
None
IndentBitmapData
ref
data
None