Gets or sets the snap unit count.
Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight
C# Copy Code |
---|
public int SnapUnitCount { get; set; } |
Visual Basic Copy Code |
---|
Public Property SnapUnitCount As Integer |
An integer value specifying the number of units.
This property works in conjunction with SnapUnit when EnableSnapping is set to true. These properties specify a virtual grid to which the items are aligned when modified interactively. If custom snapping is disabled, the items are aligned to the cells of the view.
To completely disable snapping, specify custom snapping with very small resolution - for example, one second.
The following example disables snapping:
C# Copy Code |
---|
calendar.ResourceViewSettings.EnableSnapping = true; calendar.ResourceViewSettings.SnapUnit = TimeUnit.Second; calendar.ResourceViewSettings.SnapUnitCount = 1; |
Visual Basic Copy Code |
---|
calendar.ResourceViewSettings.EnableSnapping = True calendar.ResourceViewSettings.SnapUnit = TimeUnit.Second calendar.ResourceViewSettings.SnapUnitCount = 1 |