MindFusion.Scheduling for Silverlight Programmer's Guide
ResourceViewSettings.SnapUnitCount Property
See Also
 





Gets or sets the snap unit count.

Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight

 Syntax

C#  Copy Code

public int SnapUnitCount { get; set; }

Visual Basic  Copy Code

Public Property SnapUnitCount As Integer

 Property Value

An integer value specifying the number of units.

 Remarks

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.

 Example

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

 See Also

ResourceViewSettings Members
ResourceViewSettings Class
MindFusion.Scheduling.Silverlight Namespace
SnapUnit Property
EnableSnapping Property