Class DefaultSettings
Default values for all nodes and connectors can be set using the defaultSettings property.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript.DataVisualization.Models.Diagram
Assembly: Syncfusion.EJ.dll
Syntax
public class DefaultSettings : EJTagHelper
Constructors
DefaultSettings()
Initializes a new instance of the DefaultSettings class.
Declaration
public DefaultSettings()
Properties
Connector
Gets or sets the default connector properties
Declaration
[JsonProperty("connector")]
public Connector Connector { get; set; }
Property Value
Type | Description |
---|---|
Connector | null |
Examples
DiagramProperties Model = new DiagramProperties();
Connector DefaultNode = new Connector() { LineColor = "red", LineWidth = 4, LineDashArray = "2,2" };
Model.DefaultSettings.Connector = DefaultNode;
Group
Gets or sets the default properties of groups
Declaration
[JsonProperty("group")]
public Group Group { get; set; }
Property Value
Type | Description |
---|---|
Group | null |
Examples
DiagramProperties Model = new DiagramProperties();
Group DefaultNode = new Group() { Constraints = NodeConstraints.Default | ~NodeConstraints.Drag };
Model.DefaultSettings.Group = DefaultNode;
Node
Gets or sets the default properties for nodes
Declaration
[JsonProperty("node")]
public Node Node { get; set; }
Property Value
Type | Description |
---|---|
Node | null |
Examples
DiagramProperties Model = new DiagramProperties();
Node DefaultNode = new Node() { FillColor = "red" };
Model.DefaultSettings.Node = DefaultNode;