Ray

View as Markdown

Definition

Represents an interface that exposes information regarding a Ray 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
StrokeA Stroke object used to draw the object

Examples

1// Instantiate a Ray object
2Ray myRay = Draw.Ray(this, "tag1", 10, 1000, 0, 1001, Brushes.LimeGreen);
3
4// Set a new Stroke for the object
5myRay.Stroke = new Stroke(Brushes.Green, DashStyleHelper.DashDot, 3);