How I can get Rectangle coordinates.
protected override void OnBarUpdate()
{
foreach (DrawingTool draw in DrawObjects.ToList()) // Iterate over all objects
{
if (draw is DrawingTools.Line)//Here is Truly working
{
// Indicates line Tag
Print("Find Line Object: " + draw.Tag);
}
if (draw is DrawingTools.Rectangle)//<-I need here choose object rectangle. Why not working this line?
{
// Indicates rectangle Tag
Print("Find Rectangle Object: " + draw.Tag);
//How I can get coordinates or Rectangle. I need rectangle coordinates.
double startY; //Start Y Value of Rectangle
double endY; //End Y Value of Rectangle
double startDateTime; //Start Y Value of Rectangle
double endDateTime; //End Y Value of Rectangle
//Thank You Very Much
}
}
}
if (draw is DrawingTools.Line)//Here is Truly working
Is working Perfect.
Why not working line:
if (draw is DrawingTools.Rectangle)//<-I need here choose object rectangle. Why not working this line?
How I can get Rectangle coordinates.
On the chart I have a plot same objects.
Thank You Very Much.

Comment