Dundas Chart for ASP.NET
Insert(Int32,FinancialMarkerType,Int32,Int32,Int32,Int32) Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > FinancialMarkersCollection Class > Insert Method : Insert(Int32,FinancialMarkerType,Int32,Int32,Int32,Int32) Method


index

The index value where the item should be inserted into the collection (0-based).


Position
markerName
The type of financial marker to be displayed.

The type of financial marker to be displayed.


Name of the Financial marker
firstPointIndex

The index (zero-based) of the data point that represents the first price used for the financial marker.


The index (zero-based) of the first data point to be used for a financial marker.
secondPointIndex

The index (zero-based) of the data point that represents the second price used for the financial marker.


The index (zero-based) of the second data point to be used for a financial marker.
firstYIndex

The Y-value index used for the first data point (zero-based). For example, to use the first Y-value specify a value of zero.


The index (zero-based) of the Y value to be used for a financial marker's first data point.
secondYIndex

The Y-value index used for the second data point (zero-based). For example, to use the first Y- value specify a value of zero.


The index (zero-based) of the Y value to be used for a financial marker's second data point.

Enterprise Edition Only Feature. Call this method to display a financial marker for a series. The Y-values used are specified with this definition.


Inserts a Financial Marker to the collection

Syntax

Visual Basic (Declaration)  
Public Overloads Sub Insert( _
   ByVal index As Integer, _
   ByVal markerName As FinancialMarkerType, _
   ByVal firstPointIndex As Integer, _
   ByVal secondPointIndex As Integer, _
   ByVal firstYIndex As Integer, _
   ByVal secondYIndex As Integer _
) 
Visual Basic (Usage) Copy Code
Dim instance As FinancialMarkersCollection
Dim index As Integer
Dim markerName As FinancialMarkerType
Dim firstPointIndex As Integer
Dim secondPointIndex As Integer
Dim firstYIndex As Integer
Dim secondYIndex As Integer
 
instance.Insert(index, markerName, firstPointIndex, secondPointIndex, firstYIndex, secondYIndex)
C#  
public void Insert( 
   int index,
   FinancialMarkerType markerName,
   int firstPointIndex,
   int secondPointIndex,
   int firstYIndex,
   int secondYIndex
)

Parameters

index

The index value where the item should be inserted into the collection (0-based).


Position
markerName
The type of financial marker to be displayed.

The type of financial marker to be displayed.


Name of the Financial marker
firstPointIndex

The index (zero-based) of the data point that represents the first price used for the financial marker.


The index (zero-based) of the first data point to be used for a financial marker.
secondPointIndex

The index (zero-based) of the data point that represents the second price used for the financial marker.


The index (zero-based) of the second data point to be used for a financial marker.
firstYIndex

The Y-value index used for the first data point (zero-based). For example, to use the first Y-value specify a value of zero.


The index (zero-based) of the Y value to be used for a financial marker's first data point.
secondYIndex

The Y-value index used for the second data point (zero-based). For example, to use the first Y- value specify a value of zero.


The index (zero-based) of the Y value to be used for a financial marker's second data point.

Remarks

Call this method to display a financial marker (a FinancialMarker object is inserted at the specified location into the financial markers collection). Note that the Add method can also be used, which appends an object to the end of the collection (the order in which these objects are stored only determines the order in which they are drawn).

A financial marker graphically compares two prices, which are represented by two data points in a series.

The marker that is displayed is determined by the markerType parameter.

To set the text font, text color, line color or line width of the financial marker use a definition that takes textColor, textFont, lineColor and lineWidth parameters, respectively.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.