src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/ColumnHeader.cs
/// <summary>
///     Update the widths of the columns in the header control.
/// </summary>
/// <param name="header">The control to adjust</param>
Update the widths of the columns in the header control.
Update the widths of the columns in the header control .
public void UpdateHeaderControlWidths(VirtualTreeHeaderControl header)
        {
            var columns = myHeaderBounds.HeaderCount;
            var rect = Rectangle.Empty;
            for (var i = 0; i < columns; ++i)
            {
                header.AssociatedControl.LimitRectToColumn(i, ref rect, true);
                header.SetItemWidth(i, rect.Width);
            }
            if (header.AssociatedControl.InLabelEdit
                && !header.AssociatedControl.GetStateFlag(VTCStateFlags.LabelEditProcessing))
            {
                header.AssociatedControl.SetEditSize();
            }
        }
public void UpdateHeaderControlWidths ( VirtualTreeHeaderControl header ) { var columns = myHeaderBounds . HeaderCount ; var rect = Rectangle . Empty ; for ( var i = 0 ; i < columns ; ++ i ) { header . AssociatedControl . LimitRectToColumn ( i , ref rect , true ) ; header . SetItemWidth ( i , rect . Width ) ; } if ( header . AssociatedControl . InLabelEdit && ! header . AssociatedControl . GetStateFlag ( VTCStateFlags . LabelEditProcessing ) ) { header . AssociatedControl . SetEditSize ( ) ; } }
Update the widths of the columns in the header control.
Update the widths of the columns in the header control .
// set the edit size if we're in a label edit, unless we're already processing the edit dismissal.
header
VirtualTreeHeaderControl
The control to adjust
The control to adjust