DrawRectangle Method (6)¶
DrawRectangle (1 of 6)¶
Summary¶
Draws a rectangle.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | The time value of the rectangle point 1 location on the X-axis. |
y1 | double | The Y-axis value of the rectangle point 1 location. |
time2 | DateTime | The time value of the rectangle point 2 location on the X-axis. |
y2 | double | The Y-axis value of the rectangle point 2 location. |
color | Color | The rectangle lines color. |
Return Value¶
ChartRectangle
Declaring Type¶
DrawRectangle (2 of 6)¶
Summary¶
Draws a rectangle.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | The time value of the rectangle point 1 location on the X-axis. |
y1 | double | The Y-axis value of the rectangle point 1 location. |
time2 | DateTime | The time value of the rectangle point 2 location on the X-axis. |
y2 | double | The Y-axis value of the rectangle point 2 location. |
color | Color | The rectangle lines color. |
thickness | int | The rectangle lines thickness. |
Return Value¶
ChartRectangle
Declaring Type¶
DrawRectangle (3 of 6)¶
Summary¶
Draws a rectangle.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
time1 | DateTime | The time value of the rectangle point 1 location on the X-axis. |
y1 | double | The Y-axis value of the rectangle point 1 location. |
time2 | DateTime | The time value of the rectangle point 2 location on the X-axis. |
y2 | double | The Y-axis value of the rectangle point 2 location. |
color | Color | The rectangle lines color. |
thickness | int | The rectangle lines thickness. |
lineStyle | LineStyle | The rectangle lines style. |
Return Value¶
ChartRectangle
Declaring Type¶
DrawRectangle (4 of 6)¶
Summary¶
Draws a rectangle.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | The bar index of the rectangle point 1 location on the X-axis. |
y1 | double | The Y-axis value of the rectangle point 1 location. |
barIndex2 | int | The bar index of the rectangle point 2 location on the X-axis. |
y2 | double | The Y-axis value of the rectangle point 2 location. |
color | Color | The rectangle lines color. |
Return Value¶
ChartRectangle
Declaring Type¶
DrawRectangle (5 of 6)¶
Summary¶
Draws a rectangle.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | The bar index of the rectangle point 1 location on the X-axis. |
y1 | double | The Y-axis value of the rectangle point 1 location. |
barIndex2 | int | The bar index of the rectangle point 2 location on the X-axis. |
y2 | double | The Y-axis value of the rectangle point 2 location. |
color | Color | The rectangle lines color. |
thickness | int | The rectangle lines thickness. |
Return Value¶
ChartRectangle
Declaring Type¶
DrawRectangle (6 of 6)¶
Summary¶
Draws a rectangle.
Signature¶
1 |
|
Parameters¶
Name | Type | Description |
---|---|---|
name | string | The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name. |
barIndex1 | int | The bar index of the rectangle point 1 location on the X-axis. |
y1 | double | The Y-axis value of the rectangle point 1 location. |
barIndex2 | int | The bar index of the rectangle point 2 location on the X-axis. |
y2 | double | The Y-axis value of the rectangle point 2 location. |
color | Color | The rectangle lines color. |
thickness | int | The rectangle lines thickness. |
lineStyle | LineStyle | The rectangle lines style. |
Return Value¶
ChartRectangle
Declaring Type¶
Last update: March 30, 2023