Class DiagramSnapSettings
Inheritance
Namespace: Syncfusion.EJ2.Diagrams
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramSnapSettings : EJTagHelper
Constructors
DiagramSnapSettings()
Declaration
public DiagramSnapSettings()
Properties
Constraints
Constraints for gridlines and snapping None - Snapping does not happen ShowHorizontalLines - Displays only the horizontal gridlines in diagram. ShowVerticalLines - Displays only the Vertical gridlines in diagram. ShowLines - Display both Horizontal and Vertical gridlines. SnapToHorizontalLines - Enables the object to snap only with horizontal gridlines. SnapToVerticalLines - Enables the object to snap only with horizontal gridlines. SnapToLines - Enables the object to snap with both horizontal and Vertical gridlines. snapToObject - Enables the object to snap with the other objects in the diagram.
Declaration
public SnapConstraints Constraints { get; set; }
Property Value
Type | Description |
---|---|
SnapConstraints | The default value is SnapConstraints.All |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
GridType
Defines the diagram Grid pattern. Lines - Render the line for the grid Dots - Render the dot for the grid
Declaration
public GridType GridType { get; set; }
Property Value
Type | Description |
---|---|
GridType | The default value is GridType.Lines |
HorizontalGridlines
Defines the horizontal gridlines
Declaration
public DiagramGridlines HorizontalGridlines { get; set; }
Property Value
Type | Description |
---|---|
DiagramGridlines | The default value is null |
SnapAngle
Defines the angle by which the object needs to be snapped
Declaration
public double SnapAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5 |
SnapLineColor
Defines the color of snapping lines
Declaration
public string SnapLineColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "#07EDE1" |
SnapObjectDistance
Sets the minimum distance between the selected object and the nearest object
Declaration
public double SnapObjectDistance { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5 |
VerticalGridlines
Defines the vertical gridlines
Declaration
public DiagramGridlines VerticalGridlines { get; set; }
Property Value
Type | Description |
---|---|
DiagramGridlines | The default value is null |