Class DiagramSnapSettings
Inheritance
System.Object
DiagramSnapSettings
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
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
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
HorizontalGridlines
Defines the horizontal gridlines
Declaration
public DiagramGridlines HorizontalGridlines { get; set; }
Property Value
IsComplex
Declaration
protected override bool IsComplex { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
ParentPropertyName
Declaration
protected override string ParentPropertyName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
SnapAngle
Defines the angle by which the object needs to be snapped
Declaration
public double SnapAngle { get; set; }
Property Value
Type |
Description |
System.Double |
|
SnapLineColor
Defines the color of snapping lines
Declaration
public string SnapLineColor { get; set; }
Property Value
Type |
Description |
System.String |
|
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 |
|
VerticalGridlines
Defines the vertical gridlines
Declaration
public DiagramGridlines VerticalGridlines { get; set; }
Property Value