A simple line.

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

Syntax

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

Remarks

This object is simply a line that can be drawn in any direction.

Examples

Create a line programmatically (C#)
 Copy imageCopy
// Setup our X coordinates.
DateTime startDate = DateTime.Now;
DateTime lastWeek = startDate.AddDays(-7);

// Create the line object
ChartLine line = new ChartLine(new ChartPoint(startDate, 20.00), new ChartPoint(lastWeek, 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

System..::..Object
  RightEdge.Common.ChartObjects..::..ChartObjectBase
    RightEdge.Common.ChartObjects..::..ChartLine

See Also