dotnetCHARTING Send comments on this topic.
FromElement(SeriesCollection,Int32,String,DataSourceType) Method
See Also 
dotnetCHARTING Namespace > DataSource Class > FromElement Method : FromElement(SeriesCollection,Int32,String,DataSourceType) Method


sourceSeriesCollection
SeriesCollection containing the series of the given element.
sourceSeriesIndex
Index of the series that contains the given element.
sourceElementName
Name of the given element.
splitIntoType
Split into type when this DataSource is used to populate a legend box.
Creates a DataSource object from a SeriesColleciton, Series, and Element.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function FromElement( _
   ByVal sourceSeriesCollection As SeriesCollection, _
   ByVal sourceSeriesIndex As Integer, _
   ByVal sourceElementName As String, _
   ByVal splitIntoType As DataSourceType _
) As DataSource
Visual Basic (Usage)Copy Code
Dim sourceSeriesCollection As SeriesCollection
Dim sourceSeriesIndex As Integer
Dim sourceElementName As String
Dim splitIntoType As DataSourceType
Dim value As DataSource
 
value = DataSource.FromElement(sourceSeriesCollection, sourceSeriesIndex, sourceElementName, splitIntoType)
C# 
public static DataSource FromElement( 
   SeriesCollection sourceSeriesCollection,
   int sourceSeriesIndex,
   string sourceElementName,
   DataSourceType splitIntoType
)

Parameters

sourceSeriesCollection
SeriesCollection containing the series of the given element.
sourceSeriesIndex
Index of the series that contains the given element.
sourceElementName
Name of the given element.
splitIntoType
Split into type when this DataSource is used to populate a legend box.

See Also

© 2010 All Rights Reserved.