Class DefaultSettingsBuilder
Inheritance
System.Object
DefaultSettingsBuilder
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
Assembly: Syncfusion.EJ.dll
Syntax
public class DefaultSettingsBuilder
Constructors
DefaultSettingsBuilder(DiagramProperties)
Declaration
public DefaultSettingsBuilder(DiagramProperties model)
Parameters
Type | Name | Description |
---|---|---|
DiagramProperties | model |
Fields
diagramModel
Declaration
public DiagramProperties diagramModel
Field Value
Type | Description |
---|---|
DiagramProperties |
Methods
Connector(Connector)
Gets or sets the default properties for connectors
Declaration
public DefaultSettingsBuilder Connector(Connector connector)
Parameters
Type | Name | Description |
---|---|---|
Connector | connector |
Returns
Type | Description |
---|---|
DefaultSettingsBuilder | null |
Examples
@{Html.EJ().Diagram("Diagram").Height("600px").
DefaultSettings(s =>
s.Connector(new Syncfusion.JavaScript.DataVisualization.Models.Diagram.Connector()
{
Name = "connector"
}));}
Node(Node)
Gets or sets the default properties for nodes
Declaration
public DefaultSettingsBuilder Node(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node |
Returns
Type | Description |
---|---|
DefaultSettingsBuilder | null |
Examples
@{Html.EJ().Diagram("Diagram").Height("600px").
DefaultSettings(s =>
s.Node(new Syncfusion.JavaScript.DataVisualization.Models.Diagram.Node()
{
Width = 100,
Height = 40,
FillColor = "darkcyan",
}));}