A Price Rectangle

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

Syntax

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

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#)
 Copy imageCopy
// 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