Class SnapToObject
Specifies to represent when you draw, resize, or move a shape or other object in diagram, you can set it so that it will align or "snap” to the nearest intersection in the diagram element or snap to other shapes or objects.
Inheritance
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public sealed class SnapToObject : Enum
Fields
All
Enables or disables all the behavior of snapping.
Declaration
public const SnapToObject All
Field Value
Type |
---|
SnapToObject |
Bottom
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (both dragging and diagramming elements nearest intersect with bottom to bottom or bottom to top bounds) in the diagram elements.
Declaration
public const SnapToObject Bottom
Field Value
Type |
---|
SnapToObject |
BottomBottom
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (both dragging and diagramming elements nearest intersect with bottom bounds) in the diagram elements.
Declaration
public const SnapToObject BottomBottom
Field Value
Type |
---|
SnapToObject |
BottomTop
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (The dragging object as Bottom bound and diagramming elements Top bound nearest intersect) in the diagram elements.
Declaration
public const SnapToObject BottomTop
Field Value
Type |
---|
SnapToObject |
Height
Enables or disables the snapping when dragging or rezing object holds equal heigth to the nearest diagram elements.
Declaration
public const SnapToObject Height
Field Value
Type |
---|
SnapToObject |
HorizontalCenter
Enables or disables the snapping when the dragging or rezingobject meets to the nearest intersection (Both dragging and horizontally placed node center bounds intersect each other) in the diagram elements.
Declaration
public const SnapToObject HorizontalCenter
Field Value
Type |
---|
SnapToObject |
HorizontalSpacing
Enables or disables the snapping when the dragging or rezing object holds equal space horizontally to the nearest diagram elements.
Declaration
public const SnapToObject HorizontalSpacing
Field Value
Type |
---|
SnapToObject |
Left
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (both dragging and diagramming elements nearest intersect with Left to left or left to right bounds) in the diagram elements.
Declaration
public const SnapToObject Left
Field Value
Type |
---|
SnapToObject |
LeftLeft
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (both dragging and diagramming elements nearest intersect with Left bounds) in the diagram elements.
Declaration
public const SnapToObject LeftLeft
Field Value
Type |
---|
SnapToObject |
LeftRight
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (The dragging object as left bound and diagramming elements right bound nearest intersect) in the diagram elements.
Declaration
public const SnapToObject LeftRight
Field Value
Type |
---|
SnapToObject |
None
Disables all the snapping behaviors for Nodes/Connectors to objects.
Declaration
public const SnapToObject None
Field Value
Type |
---|
SnapToObject |
Port
Enables or disables the snapping when dragging or rezing object ports are nearest intersection with other ports.
Declaration
public const SnapToObject Port
Field Value
Type |
---|
SnapToObject |
Right
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (both dragging and diagramming elements nearest intersect with right to right or right to left bounds) in the diagram elements.
Declaration
public const SnapToObject Right
Field Value
Type |
---|
SnapToObject |
RightLeft
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (The dragging object as right bound and diagramming elements left bound nearest intersect) in the diagram elements.
Declaration
public const SnapToObject RightLeft
Field Value
Type |
---|
SnapToObject |
RightRight
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (both dragging and diagramming elements nearest intersect with right bounds) in the diagram elements.
Declaration
public const SnapToObject RightRight
Field Value
Type |
---|
SnapToObject |
Segment
Enables or disables the snapping when the editing segment intersect with each other.
Declaration
public const SnapToObject Segment
Field Value
Type |
---|
SnapToObject |
Size
Enables or disables the snapping when dragging or rezing object holds equal width or height to the nearest diagram elements.
Declaration
public const SnapToObject Size
Field Value
Type |
---|
SnapToObject |
Top
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (both dragging and diagramming elements nearest intersect with top to top or top to bottom bounds) in the diagram elements.
Declaration
public const SnapToObject Top
Field Value
Type |
---|
SnapToObject |
TopBottom
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (The dragging object as Top bound and diagramming elements Bottom bound nearest intersect) in the diagram elements.
Declaration
public const SnapToObject TopBottom
Field Value
Type |
---|
SnapToObject |
TopTop
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (both dragging and diagramming elements nearest intersect with Top bounds) in the diagram elements.
Declaration
public const SnapToObject TopTop
Field Value
Type |
---|
SnapToObject |
VerticalCenter
Enables or disables the snapping when the dragging or rezing object meets to the nearest intersection (Both dragging and vertically placed node center bounds intersect each other) in the diagram elements.
Declaration
public const SnapToObject VerticalCenter
Field Value
Type |
---|
SnapToObject |
VerticalSpacing
Enables or disables the snapping when dragging or rezing object holds equal space vertically to the nearest diagram elements.
Declaration
public const SnapToObject VerticalSpacing
Field Value
Type |
---|
SnapToObject |
Width
Enables or disables the snapping when dragging or rezing object holds equal width to the nearest diagram elements.
Declaration
public const SnapToObject Width
Field Value
Type |
---|
SnapToObject |