Class DiagramRuler
To customize the appearance of the ruler in diagram.
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 DiagramRuler : EJTagHelper
Constructors
DiagramRuler()
Declaration
public DiagramRuler()
Properties
ArrangeTick
Gets or sets method to call on arranging the ticks.
Declaration
[JsonProperty("arrangeTick")]
public string ArrangeTick { get; set; }
Property Value
Type | Description |
---|---|
System.String | null |
Examples
DiagramProperties Model = new DiagramProperties();
Model.RulerSettings.HorizontalRuler.ArrangeTick = "arrangeTick";
Interval
Gets or sets the intervel of the ruler ticks
Declaration
[JsonProperty("interval")]
public double Interval { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 6 |
Examples
DiagramProperties Model = new DiagramProperties();
Model.RulerSettings.HorizontalRuler.Interval = 6;
Length
Gets or sets the length of the ruler.
Declaration
[JsonProperty("length")]
public double Length { get; set; }
Property Value
Type | Description |
---|---|
System.Double | null |
Examples
DiagramProperties Model = new DiagramProperties();
Model.RulerSettings.HorizontalRuler.Length = 500;
MarkerColor
Gets or sets marker color of the ruler.
Declaration
[JsonProperty("markerColor")]
public string MarkerColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | "red" |
Examples
DiagramProperties Model = new DiagramProperties();
Model.RulerSettings.HorizontalRuler.MarkerColor = "red";
SegmentWidth
Gets or sets the width of the ruler segment
Declaration
[JsonProperty("segmentWidth")]
public double SegmentWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 100 |
Examples
DiagramProperties Model = new DiagramProperties();
Model.RulerSettings.HorizontalRuler.SegmentWidth = 200;
Thickness
Gets or sets the tickness of the ruler.
Declaration
[JsonProperty("thickness")]
public double Thickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | 25 |
Examples
DiagramProperties Model = new DiagramProperties();
Model.RulerSettings.HorizontalRuler.Thickness = 30;
TickAlignment
Gets or sets the alignment of the ticks
Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("tickAlignment")]
public TickAlignment TickAlignment { get; set; }
Property Value
Type | Description |
---|---|
TickAlignment | TickAlignment.RightOrBottom |
Examples
DiagramProperties Model = new DiagramProperties();
Model.RulerSettings.HorizontalRuler.TickAlignment = TickAlignment.RightOrBottom;