Search
ResourceViewSettings.getSnapUnitCount Method
See Also
 






Gets the snap unit count.

Namespace: com.mindfusion.scheduling
Package: com.mindfusion.scheduling

 Syntax

Java  Copy Code

public Integer getSnapUnitCount ()

 Return Value

A positive integer value specifying the number of units from the associated SnapUnit to snap to.

 Remarks

When getSnapUnitCount is 1 the snapping is absolute. When getSnapUnitCount is greater than 1, then the snapping is relative to the element being dragged. For example, if the item is moved or its start is being resized, the snapping is relative to the item's start. If the item's end is being resized, the snapping is relative to the item's end. For example, if the item starts at 02/16, the unit count is 3 and the unit is TimeUnit.Day, an attempt to resize the item's start on the left would cause snapping at 02/13 (which is the item's start time minus 3 days).

 See Also