AddObject
AddObject function add object to chart.
public void AddObject(
string ObjectName,
string Description,
ObjectTypes ObjectType,
CoordinateUnits CoordinateUnit,
dynamic X1,
double? Y1,
dynamic X2,
double? Y2,
Color? Fill = null,
Color? Stroke = null,
StrokeThickness StrokeThickness = StrokeThickness.Small
);
Parameters
ObjectName string
Name of object.
Description string
Description of object.
ObjectType ObjectTypes
Object type of object.
CoordinateUnit CoordinateUnits
Coordinate unit of object.
X1 dynamic
X1 can be double or DateTime depending on ObjectType.
Y1 dynamic
Y1 can be double or Price value depending on ObjectType.
X2 dynamic
X2 can be double or DateTime depending on ObjectType.
Y2 dynamic
Y2 can be double or Price value depending on ObjectType.
Fill = null Color
Fill color of object.
Stroke = null Color
Stroke of object.
StrokeThickness = StrokeThickness.Small StrokeThickness
Stroke thickness of object.
Remarks
AddObject function add object to chart.
Example
ChartObjects.AddObject("NameObject", "Description", CoordinateUnits.Pixel, 50, 60, 70, 80);