Sine Object

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

Syntax

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

Remarks

A geometric waveform that oscillates (moves up, down or side-to-side) periodically, and is defined by the function y = sin x. It is an s-shaped, smooth wave that oscillates above and below zero.

The two points that are used for the sine wave object specify the top portion of the wave and the bottom portion of the wave.

Examples

Create a sine wave programmatically (C#)
 Copy imageCopy
// Setup our X coordinates.
DateTime topPoint = DateTime.Now.AddDays(-7);
DateTime bottomPoint = DateTime.Now;

// Create the sine wave object.
ChartSineObject wave = new ChartSineObject(new ChartPoint(topPoint, 25.00), new ChartPoint(bottomPoint, 20.00));

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

Inheritance Hierarchy

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

See Also