Class Shadow
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 Shadow : EJTagHelper
Constructors
Shadow()
Initializes a new instance of the Shadow class.
Declaration
public Shadow()
Properties
Angle
Gets or sets the angle of the shadow relative to node
Declaration
[JsonProperty("angle")]
public int Angle { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | 45 |
Examples
          DiagramProperties Model = new DiagramProperties();
          Shadow Shadow = new Shadow();
          Shadow.Opacity = .5f;
          Shadow.Distance = 10;
          Shadow.Angle = 45;
          BasicShape Node = new BasicShape() { Name = "SwimLane", Shadow = 23 };
          Model.Nodes.Add(Node);
Distance
Gets or sets the distance to move the shadow relative to node
Declaration
[JsonProperty("distance")]
public int Distance { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | 5 |
Examples
         DiagramProperties Model = new DiagramProperties();
          Shadow Shadow = new Shadow();
          Shadow.Opacity = .5f;
          Shadow.Distance = 10;
          Shadow.Angle = 45;
          BasicShape Node = new BasicShape() { Name = "SwimLane", Shadow = 23 };
          Model.Nodes.Add(Node);
Opacity
Gets or sets the opaque of the shadow
Declaration
[JsonProperty("opacity")]
public float Opacity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | .7f |
Examples
          DiagramProperties Model = new DiagramProperties();
          Shadow Shadow = new Shadow();
          Shadow.Opacity = .5f;
          Shadow.Distance = 10;
          Shadow.Angle = 45;
          BasicShape Node = new BasicShape() { Name = "SwimLane", Shadow = 23 };
          Model.Nodes.Add(Node);