MindFusion WinForms Programmer's Guide
ResourceViewSettings.SnapUnitCount Property
See Also
 





Gets or sets the snap unit count.

Namespace: MindFusion.Scheduling.WinForms
Assembly: MindFusion.Scheduling

 Syntax

C#  Copy Code

public int SnapUnitCount { get; set; }

Visual Basic  Copy Code

Public Property SnapUnitCount As Integer

 Property Value

A positive integer value specifying the number of units from the associated SnapUnit to snap to. Assign -1 to this property to use the corresponding value from the current theme.

 Remarks

When SnapUnitCount is 1 the snapping is absolute. When SnapUnitCount 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 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

ResourceViewSettings Members
ResourceViewSettings Class
MindFusion.Scheduling.WinForms Namespace
SnapUnit Property