src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/ColumnHeader.cs
/// <summary>
///     Get the total width required to display the headers
///     for the given control width. If this returns the input
///     value, then no scrollbar is required and there is no trailing
///     blank region in the control. A return value greater than the
///     input requires a scrollbar, and a value less than the input
///     implies a blank region on the control. Note that this method
///     generates an internal cache of column widths and must be
///     called before getting column bounds.
/// </summary>
/// <param name="controlWidth">The current width of the control.</param>
/// <returns>The total width required to display the headers.</returns>
Get the total width required to display the headers
for the given control width. If this returns the input
value, then no scrollbar is required and there is no trailing
blank region in the control. A return value greater than the
input requires a scrollbar, and a value less than the input
implies a blank region on the control. Note that this method
generates an internal cache of column widths and must be
called before getting column bounds.
Get the total width required to display the headers for the given control width . If this returns the input value then no scrollbar is required and there is no trailing blank region in the control . A return value greater than the input requires a scrollbar and a value less than the input implies a blank region on the control . Note that this method generates an internal cache of column widths and must be called before getting column bounds .
public int ChangeControlWidth(int controlWidth)
            {
                if (myHeaders == null)
                {
                    return controlWidth;
                }
                else if (myVariableBounds != null)
                {
                    myColumnWidths[0] = -1f;
                    return (int)(CalculateNonFixedControlWidth(controlWidth) + .5f);
                }
                else
                {
                    return myTotalFixedWidth;
                }
            }
public int ChangeControlWidth ( int controlWidth ) { if ( myHeaders == null ) { return controlWidth ; } else if ( myVariableBounds != null ) { myColumnWidths [ 0 ] = - 1f ; return ( int ) ( CalculateNonFixedControlWidth ( controlWidth ) + .5f ) ; } else { return myTotalFixedWidth ; } }
Get the total width required to display the headers
for the given control width.
Get the total width required to display the headers for the given control width .
// Signal to recalculate widths
The total width required to display the headers.
The total width required to display the headers .
controlWidth
int
The current width of the control.
The current width of the control .