ATAS
Loading...
Searching...
No Matches
ATAS.Indicators.Drawing.DrawingRectangle Class Reference

Represents a rectangle drawn on a chart. More...

Public Member Functions

 DrawingRectangle (int firstBar, decimal firstPrice, int secondBar, decimal secondPrice, Pen outlinePen, Brush fillBrush)
 Initializes a new instance of the DrawingRectangle class with specified parameters.
 
 DrawingRectangle (int firstBar, decimal firstPrice, int secondBar, decimal secondPrice, Pen outlinePen, Brush fillBrush, Pen midPen)
 Initializes a new instance of the DrawingRectangle class with specified parameters.
 

Properties

Brush Brush [get, set]
 Gets or sets the brush used to fill the rectangle.
 
Pen Pen [get, set]
 Gets or sets the pen used to draw the outline of the rectangle.
 
Pen MiddlePen = new(DefaultColors.Gray) [get, set]
 Gets or sets the pen used to draw the middle horizontal line of the rectangle.
 
int FirstBar [get, set]
 Gets or sets the index of the first bar.
 
int SecondBar [get, set]
 Gets or sets the index of the second bar.
 
decimal FirstPrice [get, set]
 Gets or sets the price value of the first point.
 
decimal SecondPrice [get, set]
 Gets or sets the price value of the second point.
 
bool ExtendRight [get, set]
 Gets or sets rectangle extension to right side.
 
bool ExtendLeft [get, set]
 Gets or sets rectangle extension to left side.
 
bool MidLineEnabled [get, set]
 Gets or sets drawing of middle horizontal line of rectangle.
 

Detailed Description

Represents a rectangle drawn on a chart.

Constructor & Destructor Documentation

◆ DrawingRectangle() [1/2]

ATAS.Indicators.Drawing.DrawingRectangle.DrawingRectangle ( int  firstBar,
decimal  firstPrice,
int  secondBar,
decimal  secondPrice,
Pen  outlinePen,
Brush  fillBrush 
)

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

Parameters
firstBarThe index of the first bar.
firstPriceThe price value of the first point.
secondBarThe index of the second bar.
secondPriceThe price value of the second point.
outlinePenThe pen used to draw the outline of the rectangle.
fillBrushThe brush used to fill the rectangle.

◆ DrawingRectangle() [2/2]

ATAS.Indicators.Drawing.DrawingRectangle.DrawingRectangle ( int  firstBar,
decimal  firstPrice,
int  secondBar,
decimal  secondPrice,
Pen  outlinePen,
Brush  fillBrush,
Pen  midPen 
)

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

Parameters
firstBarThe index of the first bar.
firstPriceThe price value of the first point.
secondBarThe index of the second bar.
secondPriceThe price value of the second point.
outlinePenThe pen used to draw the outline of the rectangle.
fillBrushThe brush used to fill the rectangle.
midPenThe pen used to draw the middle horizontal line of the rectangle.

Property Documentation

◆ Brush

Brush ATAS.Indicators.Drawing.DrawingRectangle.Brush
getset

Gets or sets the brush used to fill the rectangle.

◆ ExtendLeft

bool ATAS.Indicators.Drawing.DrawingRectangle.ExtendLeft
getset

Gets or sets rectangle extension to left side.

◆ ExtendRight

bool ATAS.Indicators.Drawing.DrawingRectangle.ExtendRight
getset

Gets or sets rectangle extension to right side.

◆ FirstBar

int ATAS.Indicators.Drawing.DrawingRectangle.FirstBar
getset

Gets or sets the index of the first bar.

◆ FirstPrice

decimal ATAS.Indicators.Drawing.DrawingRectangle.FirstPrice
getset

Gets or sets the price value of the first point.

◆ MiddlePen

Pen ATAS.Indicators.Drawing.DrawingRectangle.MiddlePen = new(DefaultColors.Gray)
getset

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

◆ MidLineEnabled

bool ATAS.Indicators.Drawing.DrawingRectangle.MidLineEnabled
getset

Gets or sets drawing of middle horizontal line of rectangle.

◆ Pen

Pen ATAS.Indicators.Drawing.DrawingRectangle.Pen
getset

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

◆ SecondBar

int ATAS.Indicators.Drawing.DrawingRectangle.SecondBar
getset

Gets or sets the index of the second bar.

◆ SecondPrice

decimal ATAS.Indicators.Drawing.DrawingRectangle.SecondPrice
getset

Gets or sets the price value of the second point.


The documentation for this class was generated from the following file: