menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum SnapToObject - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum 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.

    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    [Flags]
    public enum SnapToObject

    Fields

    Name Description
    All

    Enables or disables all the behavior of snapping.

    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.

    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.

    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.

    Height

    Enables or disables the snapping when dragging or rezing object holds equal heigth to the nearest diagram elements.

    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.

    HorizontalSpacing

    Enables or disables the snapping when the dragging or rezing object holds equal space horizontally to the nearest diagram elements.

    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.

    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.

    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.

    None

    Disables all the snapping behaviors for Nodes/Connectors to objects.

    Port

    Enables or disables the snapping when dragging or rezing object ports are nearest intersection with other ports.

    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.

    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.

    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.

    Segment

    Enables or disables the snapping when the editing segment intersect with each other.

    Size

    Enables or disables the snapping when dragging or rezing object holds equal width or height to the nearest diagram elements.

    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.

    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.

    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.

    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.

    VerticalSpacing

    Enables or disables the snapping when dragging or rezing object holds equal space vertically to the nearest diagram elements.

    Width

    Enables or disables the snapping when dragging or rezing object holds equal width to the nearest diagram elements.

    Extension Methods

    DiagramExtensions.Contains(SnapToObject)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved