src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/ColumnHeader.cs
/// <summary>
///     Populate the header control with the current header items
/// </summary>
/// <param name="header">The control to populate</param>
Populate the header control with the current header items
Populate the header control with the current header items
public void PopulateHeaderControl(VirtualTreeHeaderControl header)
        {
            header.Clear();
            var columns = myHeaderBounds.HeaderCount;
            var rect = Rectangle.Empty;
            var headers = myHeaderBounds.Headers;
            for (var i = 0; i < columns; ++i)
            {
                header.AssociatedControl.LimitRectToColumn(i, ref rect, true);
                header.AddItem(headers[i], rect.Width);
            }
        }
public void PopulateHeaderControl ( VirtualTreeHeaderControl header ) { header . Clear ( ) ; var columns = myHeaderBounds . HeaderCount ; var rect = Rectangle . Empty ; var headers = myHeaderBounds . Headers ; for ( var i = 0 ; i < columns ; ++ i ) { header . AssociatedControl . LimitRectToColumn ( i , ref rect , true ) ; header . AddItem ( headers [ i ] , rect . Width ) ; } }
Populate the header control with the current header items
Populate the header control with the current header items
header
VirtualTreeHeaderControl
The control to populate
The control to populate