A Price Rectangle

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

Syntax

C#
[SerializableAttribute]
public class ChartRectanglePrice : ChartRoundedRectangle
Visual Basic (Declaration)
<SerializableAttribute> _
Public Class ChartRectanglePrice _
	Inherits ChartRoundedRectangle
Visual C++
[SerializableAttribute]
public ref class ChartRectanglePrice : public ChartRoundedRectangle

Remarks

This object will create a rectangle that snaps to the price data on the chart. The rectangle auto-sizes itself based on the price data and that cannot be changed by the developer or user.

Examples

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

// Create the rectangle price object with the default color.
ChartRectanglePrice rectangle = new ChartRectanglePrice(new ChartPoint(leftPoint, 20.00), new ChartPoint(rightPoint, 25.00), Color.RoyalBlue, 3);

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

Inheritance Hierarchy

See Also