The values of this enum describe to which grid elements an object shall snap. It can be used for the GraphSnapContext's GridSnapType property to determine what SnapResults shall be created for the set IGridConstraintProvider<(Of <(<'T>)>)>.

Namespace: yWorks.Canvas
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
[FlagsAttribute] public enum GridSnapType
Visual Basic
<FlagsAttribute> _ Public Enumeration GridSnapType

Members

Member nameValueDescription
None0 There is no grid snapping at all.
HorizontalLines1 Elements shall be snapped to horizontal grid lines.
VerticalLines2 Elements shall be snapped to vertical grid lines.
Lines3 Elements shall be snapped to horizontal and vertical grid lines.
GridPoints4 Elements shall be snapped to grid points.
All7 Elements shall be snapped to horizontal and vertical grid lines as well as to grid points.

See Also