Search
ResourceViewSettings.setSnapUnit Method
See Also
 






Sets the snap unit.

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

 Syntax

Java  Copy Code

public void setSnapUnit (
    TimeUnit value
)

 Parameters

value

One of the TimeUnit constants. Set to null to use the corresponding value from the current theme.

 Remarks

Specifies the time unit of the nearest value to align to when an item is being modified interactively. For example specifying TimeUnit.Day causes the manipulated item to always be aligned to the nearest day. To practically disable snapping, specify TimeUnit.Second for this property.

 See Also