Class Layer
It is used to organize related shapes on the Diagram control.A layer is a named category of shapes.
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 Layer : EJTagHelper
Constructors
Layer()
Declaration
public Layer()
Properties
Active
DiagramProperties Model = new DiagramProperties();
Model.Layers.Active =false;
Declaration
[JsonProperty("active")]
public bool Active { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Examples
@{
Html.EJ().Diagram("Diagram").Height("600px").layers(sn => sn.Active(false));
}
Lock
DiagramProperties Model = new DiagramProperties();
Model.Layers.Lock =false;
Declaration
[JsonProperty("lock")]
public bool Lock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | false |
Examples
@{
Html.EJ().Diagram("Diagram").Height("600px").layers(sn => sn.Lock(false));
}
Name
DiagramProperties Model = new DiagramProperties();
Model.Layers.Name ="";
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | "" |
Examples
@{
Html.EJ().Diagram("Diagram").Height("600px").layers(sn => sn.Name(""));
}
Objects
Gets or sets a set of node name of objects
Declaration
[JsonProperty("objects")]
public Collection Objects { get; set; }
Property Value
Type | Description |
---|---|
Collection | [] |
Examples
DiagramProperties Model = new DiagramProperties();
Collection Object = new Collection();
Objects.Add("");
Model.Layers.Objects = Object;
DiagramProperties Model = new DiagramProperties();
Model.Layers.Print =true;
Declaration
[JsonProperty("print")]
public bool Print { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true |
Examples
@{
Html.EJ().Diagram("Diagram").Height("600px").layers(sn => sn.Print(true));
}
Visible
DiagramProperties Model = new DiagramProperties();
Model.Layers.Visible =true;
Declaration
[JsonProperty("visible")]
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true |
Examples
@{
Html.EJ().Diagram("Diagram").Height("600px").layers(sn => sn.Visible(true));
}