Class DiagramLayer
Represents to organize related shapes on a diagram.
Namespace: Syncfusion.Blazor.Diagrams
Assembly: Syncfusion.Blazor.dll
Syntax
public class DiagramLayer : SfDiagramBase
Remarks
A layer is a named category of shapes. By assigning shapes to different layers, the user can selectively view, remove, and lock different categories of shapes.
Constructors
DiagramLayer()
Represents to organize related shapes on a diagram.
Declaration
public DiagramLayer()
Properties
AddInfo
Allows the user to store the additional information about the Layer
Declaration
public object AddInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Remarks
The additional information can be stored in any type while serializing and can be retrieved whenever the user needs it.
Id
Specifies the unique id of the layer.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Layer Id needs to be unique to use. Users should not provide the same id to another layer.
Lock
Enables or disables the editing of objects in a specific layer.
Declaration
public bool Lock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
This property is used to prevent or allow changes to the element dimension and position.
Objects
Specifies objects which are added to a specific layer.
Declaration
public string[] Objects { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Visible
Control the visibility of the elements assigned to the layer.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ZIndex
Specifies the visual order of the layer.
Declaration
public double ZIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Remarks
The property specifies the stack order of the layer. A node with greater stack order is always in front of a Layer with a lower stack order.