Table of Contents

Class DrawingRectangle

Namespace
ATAS.Indicators.Drawing
Assembly
ATAS.Indicators.dll

Represents a rectangle drawn on a chart.

public class DrawingRectangle
Inheritance
object
DrawingRectangle
Extension Methods

Constructors

DrawingRectangle(int, decimal, int, decimal, Pen, Brush)

Initializes a new instance of the DrawingRectangle class with specified parameters.

public DrawingRectangle(int firstBar, decimal firstPrice, int secondBar, decimal secondPrice, Pen outlinePen, Brush fillBrush)

Parameters

firstBar int

The index of the first bar.

firstPrice decimal

The price value of the first point.

secondBar int

The index of the second bar.

secondPrice decimal

The price value of the second point.

outlinePen Pen

The pen used to draw the outline of the rectangle.

fillBrush Brush

The brush used to fill the rectangle.

DrawingRectangle(int, decimal, int, decimal, Pen, Brush, Pen)

Initializes a new instance of the DrawingRectangle class with specified parameters.

public DrawingRectangle(int firstBar, decimal firstPrice, int secondBar, decimal secondPrice, Pen outlinePen, Brush fillBrush, Pen midPen)

Parameters

firstBar int

The index of the first bar.

firstPrice decimal

The price value of the first point.

secondBar int

The index of the second bar.

secondPrice decimal

The price value of the second point.

outlinePen Pen

The pen used to draw the outline of the rectangle.

fillBrush Brush

The brush used to fill the rectangle.

midPen Pen

The pen used to draw the middle horizontal line of the rectangle.

Properties

Brush

Gets or sets the brush used to fill the rectangle.

public Brush Brush { get; set; }

Property Value

Brush

ExtendLeft

Gets or sets rectangle extension to left side.

public bool ExtendLeft { get; set; }

Property Value

bool

ExtendRight

Gets or sets rectangle extension to right side.

public bool ExtendRight { get; set; }

Property Value

bool

FirstBar

Gets or sets the index of the first bar.

public int FirstBar { get; set; }

Property Value

int

FirstPrice

Gets or sets the price value of the first point.

public decimal FirstPrice { get; set; }

Property Value

decimal

MidLineEnabled

Gets or sets drawing of middle horizontal line of rectangle.

public bool MidLineEnabled { get; set; }

Property Value

bool

MiddlePen

Gets or sets the pen used to draw the middle horizontal line of the rectangle.

public Pen MiddlePen { get; set; }

Property Value

Pen

Pen

Gets or sets the pen used to draw the outline of the rectangle.

public Pen Pen { get; set; }

Property Value

Pen

SecondBar

Gets or sets the index of the second bar.

public int SecondBar { get; set; }

Property Value

int

SecondPrice

Gets or sets the price value of the second point.

public decimal SecondPrice { get; set; }

Property Value

decimal