src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/HeaderControl.cs
/// <summary>
///     Update the appearance fields (string, glyph, and style) to the new header settings. This
///     cannot be used to update the width or position of the header.
/// </summary>
/// <param name="columnHeader">The header with the current settings</param>
/// <param name="displayColumn">The display column to update</param>
Update the appearance fields (string, glyph, and style) to the new header settings. This
cannot be used to update the width or position of the header.
Update the appearance fields ( string glyph and style ) to the new header settings . This cannot be used to update the width or position of the header .
public void UpdateItemAppearance(VirtualTreeColumnHeader columnHeader, int displayColumn)
        {
            if (IsHandleCreated)
            {
                var item = new NativeMethods.HDITEM();
                SetAppearanceFields(ref columnHeader, ref item);
                if (item.mask != 0)
                {
                    NativeMethods.SendMessage(Handle, NativeMethods.HDM_SETITEMW, OrderToIndex(displayColumn), ref item);
                }
            }
        }
public void UpdateItemAppearance ( VirtualTreeColumnHeader columnHeader , int displayColumn ) { if ( IsHandleCreated ) { var item = new NativeMethods . HDITEM ( ) ; SetAppearanceFields ( ref columnHeader , ref item ) ; if ( item . mask != 0 ) { NativeMethods . SendMessage ( Handle , NativeMethods . HDM_SETITEMW , OrderToIndex ( displayColumn ) , ref item ) ; } } }
Update the appearance fields (string, glyph, and style) to the new header settings.
Update the appearance fields ( string glyph and style ) to the new header settings .
columnHeader
VirtualTreeColumnHeader
The header with the current settings
The header with the current settings
displayColumn
int
The display column to update
The display column to update