Region

View as Markdown

Definition

Represents an interface that exposes information regarding a Region IDrawingTool.

Methods and Properties

ParameterDescription
StartAnchorAn IDrawingTool’s ChartAnchor representing the starting point of the drawing object
EndAnchorAn IDrawingTool’s ChartAnchor representing the starting point of the drawing object
AreaOpacityAn int value representing the opacity of the area color
AreaBrushA Brush object representing the fill color of the draw object
OutlineStrokeA Stroke used for the outline of the region

Examples

1// Instantiate a Region object
2Region myRegion = Draw.Region(this, "tag1", CurrentBar, 0, Bollinger(2, 14).Upper, Bollinger(2, 14).Lower, null, Brushes.Blue, 50);
3
4// Set the object's OutlineStroke to a new Stroke
5myRegion.OutlineStroke = new Stroke(Brushes.Red, DashStyleHelper.Solid, 3);