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.CanvasAssembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.1.0.2
Syntax
| C# |
|---|
[FlagsAttribute] public enum GridSnapType |
| Visual Basic |
|---|
<FlagsAttribute> _ Public Enumeration GridSnapType |
Members
| Member name | Description | ||
|---|---|---|---|
| None | 0 | There is no grid snapping at all. | |
| HorizontalLines | 1 | Elements shall be snapped to horizontal grid lines. | |
| VerticalLines | 2 | Elements shall be snapped to vertical grid lines. | |
| Lines | 3 | Elements shall be snapped to horizontal and vertical grid lines. | |
| GridPoints | 4 | Elements shall be snapped to grid points. | |
| All | 7 | Elements shall be snapped to horizontal and vertical grid lines as well as to grid points. |