A Rectangle object

Namespace: RightEdge.Common.ChartObjects
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
[SerializableAttribute]
public class ChartRectangle : ChartObjectBase
Visual Basic
<SerializableAttribute>
Public Class ChartRectangle
	Inherits ChartObjectBase
Visual C++
[SerializableAttribute]
public ref class ChartRectangle : public ChartObjectBase
F#
[<SerializableAttribute>]
type ChartRectangle =  
    class
        inherit ChartObjectBase
    end

Remarks

This object will create a rectangle on the chart. The rectangle can be filled or transparent.

Examples

Create a rectangle programmatically (C#)
 Copy imageCopy
// Setup our X coordinates.
DateTime leftPoint = DateTime.Now.AddDays(-7);
DateTime rightPoint = DateTime.Now;

// Create the rectangle object
ChartRectangle rectangle = new ChartRectangle(new ChartPoint(leftPoint, 20.00), new ChartPoint(rightPoint, 25.00));

// Add this object to the chart.  "symbol" would equal the current symbol object in the system.
ChartObjects.Add(symbol, rectangle);

Inheritance Hierarchy

See Also