A simple line.
Namespace:
RightEdge.Common.ChartObjectsAssembly: Common (in Common.dll)
Version: 2008.1.0.0 (2008.1.0.0)
Syntax
| C# |
|---|
[SerializableAttribute] public class ChartLine : ChartObjectBase |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class ChartLine _ Inherits ChartObjectBase |
| Visual C++ |
|---|
[SerializableAttribute] public ref class ChartLine : public ChartObjectBase |
Remarks
This object is simply a line that can be drawn in any direction.
Examples
Create a line programmatically (C#)
CopyC#
// 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
RightEdge.Common.ChartObjects..::.ChartObjectBase
RightEdge.Common.ChartObjects..::.ChartLine