Class SnapConstraints
Enables or disables certain features of snapping.
Inheritance
System.Object
SnapConstraints
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class SnapConstraints : Enum
Examples
<SfDiagramComponent @bind-Constraints="@diagramConstraints" Height="600px" />
<SnapSettings @ref="snapSettings" @bind-Constraints="@Constraints" />
@code
{
SnapSettings snapSettings;
SnapConstraints Constraints = SnapConstraints.All;
DiagramObjectCollection<Node> nodes = new DiagramObjectCollection<Node>();
protected override void OnInitialized()
{
}
}
Fields
All
Enables all the functionalities of snapping.
Declaration
public const SnapConstraints All
Field Value
Type |
---|
SnapConstraints |
None
Disables all the functionalities of snapping.
Declaration
public const SnapConstraints None
Field Value
Type |
---|
SnapConstraints |
ShowHorizontalLines
Displays only the horizontal grid lines in the diagram.
Declaration
public const SnapConstraints ShowHorizontalLines
Field Value
Type |
---|
SnapConstraints |
ShowLines
Display both the horizontal and the vertical grid lines.
Declaration
public const SnapConstraints ShowLines
Field Value
Type |
---|
SnapConstraints |
ShowVerticalLines
Displays only the vertical grid lines in the diagram.
Declaration
public const SnapConstraints ShowVerticalLines
Field Value
Type |
---|
SnapConstraints |
SnapToHorizontalLines
Enables the object to snap only with horizontal grid lines.
Declaration
public const SnapConstraints SnapToHorizontalLines
Field Value
Type |
---|
SnapConstraints |
SnapToLines
Enables the object to snap with both the horizontal and vertical grid lines.
Declaration
public const SnapConstraints SnapToLines
Field Value
Type |
---|
SnapConstraints |
SnapToObject
Enables the object to snap with other objects in the diagram.
Declaration
public const SnapConstraints SnapToObject
Field Value
Type |
---|
SnapConstraints |
SnapToVerticalLines
Enables the object to snap only with vertical grid lines.
Declaration
public const SnapConstraints SnapToVerticalLines
Field Value
Type |
---|
SnapConstraints |