FlexGrid for WPF | ComponentOne
C1.WPF.GridControl Assembly / C1.WPF.Grid Namespace / C1GridControl Class / GetSnapHorizontalOffset Method
The horizontal offset.
Whether the floor column or ceiling should be taken.

In This Topic
    GetSnapHorizontalOffset Method (C1GridControl)
    In This Topic
    Calculates the horizontal offset so the grid snaps to the columns.
    Syntax
    'Declaration
     
    Protected Overridable Function GetSnapHorizontalOffset( _
       ByVal horizontalOffset As Double, _
       ByVal floor As Boolean _
    ) As Double
    protected virtual double GetSnapHorizontalOffset( 
       double horizontalOffset,
       bool floor
    )

    Parameters

    horizontalOffset
    The horizontal offset.
    floor
    Whether the floor column or ceiling should be taken.
    See Also