src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/HeaderControl.cs
/// <summary>
///     Get the current display column for a header index, such as the header
///     index sent with the NMHEADER structure to HDN_* notification messages.
/// </summary>
/// <param name="index">The header index</param>
/// <returns>The column the header is currently displayed at.</returns>
Get the current display column for a header index, such as the header
index sent with the NMHEADER structure to HDN_* notification messages.
Get the current display column for a header index such as the header index sent with the NMHEADER structure to HDN_ * notification messages .
protected int IndexToOrder(int index)
        {
            if (IsHandleCreated)
            {
                var item = new NativeMethods.HDITEM();
                item.iOrder = index;
                item.mask = NativeMethods.HDITEM.Mask.HDI_ORDER;
                NativeMethods.SendMessage(Handle, NativeMethods.HDM_GETITEMW, index, ref item);
                return item.iOrder;
            }
            return index;
        }
protected int IndexToOrder ( int index ) { if ( IsHandleCreated ) { var item = new NativeMethods . HDITEM ( ) ; item . iOrder = index ; item . mask = NativeMethods . HDITEM . Mask . HDI_ORDER ; NativeMethods . SendMessage ( Handle , NativeMethods . HDM_GETITEMW , index , ref item ) ; return item . iOrder ; } return index ; }
Get the current display column for a header index, such as the header
index sent with the NMHEADER structure to HDN_* notification messages.
Get the current display column for a header index such as the header index sent with the NMHEADER structure to HDN_ * notification messages .
The column the header is currently displayed at.
The column the header is currently displayed at .
index
int
The header index
The header index