src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/ColumnHeader.cs
/// <summary>
///     Limit the drop position to the allowed drop range for the given item.
///     Any call to EndColumnAdjustment assumes that the value has been
///     correctly limited with this call.
/// </summary>
/// <param name="dropPosition">
///     The drop position, in whatever coordinates
///     were passed to BeginColumnAdjustment (generally global screen coordinates)
/// </param>
/// <returns>The limit value</returns>
Limit the drop position to the allowed drop range for the given item.
Any call to EndColumnAdjustment assumes that the value has been
correctly limited with this call.
Limit the drop position to the allowed drop range for the given item . Any call to EndColumnAdjustment assumes that the value has been correctly limited with this call .
public int LimitColumnAdjustment(int dropPosition)
            {
                dropPosition += myAdjustMouseX;
                if (dropPosition > myAdjustMaxX)
                {
                    dropPosition = myAdjustMaxX;
                }
                else if (dropPosition < myAdjustMinX)
                {
                    dropPosition = myAdjustMinX;
                }
                return dropPosition;
            }
public int LimitColumnAdjustment ( int dropPosition ) { dropPosition += myAdjustMouseX ; if ( dropPosition > myAdjustMaxX ) { dropPosition = myAdjustMaxX ; } else if ( dropPosition < myAdjustMinX ) { dropPosition = myAdjustMinX ; } return dropPosition ; }
Limit the drop position to the allowed drop range for the given item.
Limit the drop position to the allowed drop range for the given item .
The limit value
The limit value
dropPosition
int
The drop position, in whatever coordinates
were passed to BeginColumnAdjustment (generally global screen coordinates)
The drop position in whatever coordinates were passed to BeginColumnAdjustment ( generally global screen coordinates )