Class DiagramSnapSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
DiagramSnapSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class DiagramSnapSettingsBuilder : ControlBuilder
Constructors
DiagramSnapSettingsBuilder()
Declaration
public DiagramSnapSettingsBuilder()
DiagramSnapSettingsBuilder(DiagramSnapSettings)
Declaration
public DiagramSnapSettingsBuilder(DiagramSnapSettings model)
Parameters
Methods
Constraints(SnapConstraints)
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 DiagramSnapSettingsBuilder Constraints(SnapConstraints value)
Parameters
Returns
GridType(GridType)
Defines the diagram Grid pattern.
Lines - Render the line for the grid
Dots - Render the dot for the grid
Declaration
public DiagramSnapSettingsBuilder GridType(GridType value)
Parameters
Returns
HorizontalGridlines(DiagramGridlines)
Defines the horizontal gridlines
Declaration
public DiagramSnapSettingsBuilder HorizontalGridlines(DiagramGridlines value)
Parameters
Returns
HorizontalGridlines(Action<DiagramGridlinesBuilder>)
Declaration
public DiagramSnapSettingsBuilder HorizontalGridlines(Action<DiagramGridlinesBuilder> horizontalGridlines)
Parameters
Returns
SnapAngle(Double)
Defines the angle by which the object needs to be snapped
Declaration
public DiagramSnapSettingsBuilder SnapAngle(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
SnapLineColor(String)
Defines the color of snapping lines
Declaration
public DiagramSnapSettingsBuilder SnapLineColor(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
SnapObjectDistance(Double)
Sets the minimum distance between the selected object and the nearest object
Declaration
public DiagramSnapSettingsBuilder SnapObjectDistance(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
VerticalGridlines(DiagramGridlines)
Defines the vertical gridlines
Declaration
public DiagramSnapSettingsBuilder VerticalGridlines(DiagramGridlines value)
Parameters
Returns
VerticalGridlines(Action<DiagramGridlinesBuilder>)
Declaration
public DiagramSnapSettingsBuilder VerticalGridlines(Action<DiagramGridlinesBuilder> verticalGridlines)
Parameters
Returns