[]
        
(Showing Draft Content)

C1.WPF.Grid.C1GridControl.GetSnapHorizontalOffset

GetSnapHorizontalOffset Method

GetSnapHorizontalOffset(double, bool)

Calculates the horizontal offset so the grid snaps to the columns.

Declaration
protected virtual double GetSnapHorizontalOffset(double horizontalOffset, bool floor)
Parameters
Type Name Description
double horizontalOffset

The horizontal offset.

bool floor

Whether the floor column or ceiling should be taken.

Returns
Type Description
double