src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/HeaderControl.cs
/// <summary>
///     Add an item to the control. Always adds in the last position.
/// </summary>
/// <param name="columnHeader">The header information</param>
/// <param name="itemWidth"></param>
Add an item to the control. Always adds in the last position.
Add an item to the control . Always adds in the last position .
public void AddItem(VirtualTreeColumnHeader columnHeader, int itemWidth)
        {
            var item = new NativeMethods.HDITEM();
            item.cxy = itemWidth;
            item.mask = NativeMethods.HDITEM.Mask.HDI_WIDTH;
            SetAppearanceFields(ref columnHeader, ref item);
            NativeMethods.SendMessage(Handle, NativeMethods.HDM_INSERTITEMW, int.MaxValue, ref item);
        }
public void AddItem ( VirtualTreeColumnHeader columnHeader , int itemWidth ) { var item = new NativeMethods . HDITEM ( ) ; item . cxy = itemWidth ; item . mask = NativeMethods . HDITEM . Mask . HDI_WIDTH ; SetAppearanceFields ( ref columnHeader , ref item ) ; NativeMethods . SendMessage ( Handle , NativeMethods . HDM_INSERTITEMW , int . MaxValue , ref item ) ; }
Add an item to the control.
Add an item to the control .
columnHeader
VirtualTreeColumnHeader
The header information
The header information
itemWidth
int
None