Ruler

View as Markdown

Definition

Represents an interface that exposes information regarding a Ruler IDrawingTool.

Methods and Properties

ParameterDescription
StartAnchorAn IDrawingTool’s ChartAnchor representing the starting point of the drawing object
EndAnchorAn IDrawingTool’s ChartAnchor representing the end point of the drawing object
TextAnchorAn IDrawingTool’s ChartAnchor representing the text point of the drawing object
TextColorA Brush class representing the fill color of the draw object’s text area
LineColorA Stroke object used to draw the object

Examples

1// Instantiate a Ruler object
2Ruler myRuler = Draw.Ruler(this, "tag1", true, 4, Low[4], 3, High[3], 1, Low[1]);
3
4// Change the object's text color to white
5myRuler.TextColor = Brushes.White;