+1 888 340 6572

RectangleSetSize: Difference between revisions

From MultiCharts
(Created page with "Assigns the specified width to a rectangle with the specified ID number; returns a value of 0 if the line width was successfully assigned, and a value of -2 if the specified r...")
 
(No difference)

Latest revision as of 15:51, 25 August 2021

Assigns the specified width to a rectangle with the specified ID number; returns a value of 0 if the line width was successfully assigned, and a value of -2 if the specified rectangle ID number is invalid.

Usage

RectangleSetSize(ID,LineWidth)

Where:

ID - a numerical expression specifying the rectangle ID number
LineWidth - a numerical expression specifying the rectangle width; rectangle width can range from 0 to 6

Notes

A rectangle-specific ID number is returned by RectangleNew when the rectangle is created.

Example

Assign the width of 5 to the rectangle with an ID number of 1:

Value1=RectangleSetSize(1,5);