Class SnapToGrid
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class SnapToGrid
Constructors
SnapToGrid()
The default constructor sets the following default values: FieldWidth = 1.0f; SnapRelative = 0.2f; SnapDelta = 0.2f; SnapType = SnapTypes.Relative;
Declaration
public SnapToGrid()
SnapToGrid(ref SnapToGrid)
Properties
CachedSnap
Gets the precached snap distance. Doesn't need to be equal to any of the SnapFixed or SnapRelative properties.
Declaration
public float CachedSnap { get; }
Property Value
System.
|
FieldWidth
Width of a single box in the snap grid. It's value cannot be less than or equal to zero.
Declaration
public float FieldWidth { get; set; }
Property Value
System.
|
SnapFixed
Sets/Gets the snap distance for fixed type snapping.
Does not activate fixed type snapping.
Snap
Declaration
public float SnapFixed { get; set; }
Property Value
System.
|
SnappedPoint
Declaration
public PointF SnappedPoint { get; }
Property Value
System.
|
SnapRelative
Sets/Gets the relative snap distance.
Does not activate relative type snapping.
Snap
Declaration
public float SnapRelative { get; set; }
Property Value
System.
|
SnapType
Set the snap type to be one of the following:
SnapTypes.Relative - snap distance is relative to the FieldWidth
Snap
Declaration
public SnapToGrid.SnapTypes SnapType { get; set; }
Property Value
Methods
SnapPtToGrid(PointF)
Declaration
public int SnapPtToGrid(PointF pos)
Parameters
System.
|
Returns
System.
|