Dundas Chart for Windows Forms
Add(LegendCellType,String,ContentAlignment) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > LegendCellCollection Class > Add Method : Add(LegendCellType,String,ContentAlignment) Method


cellType
A LegendCellType value representing the cell type.
A LegendCellType value representing the cell type.
text
A string value representing either the cell text or its image name depending, on the cellType parameter.
A string value representing cell text or image name depending on the cellType parameter.
alignment
A ContentAlignment value representing the cell content alignment.
A ContentAlignment value representing cell content alignment.
Adds a legend cell to the end of the collection, taking the cell type, text and alignment.
Adds a cell to the end of the collection.

Syntax

Visual Basic (Declaration)  
Public Overloads Function Add( _
   ByVal cellType As LegendCellType, _
   ByVal text As String, _
   ByVal alignment As ContentAlignment _
) As Integer
Visual Basic (Usage) Copy Code
Dim instance As LegendCellCollection
Dim cellType As LegendCellType
Dim text As String
Dim alignment As ContentAlignment
Dim value As Integer
 
value = instance.Add(cellType, text, alignment)
C#  
public int Add( 
   LegendCellType cellType,
   string text,
   ContentAlignment alignment
)

Parameters

cellType
A LegendCellType value representing the cell type.
A LegendCellType value representing the cell type.
text
A string value representing either the cell text or its image name depending, on the cellType parameter.
A string value representing cell text or image name depending on the cellType parameter.
alignment
A ContentAlignment value representing the cell content alignment.
A ContentAlignment value representing cell content alignment.

Return Value

Returns an integer that represents the index of the newly added legend cell in the collection (zero-based).
Index of the newly added object.

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

© 2009 All Rights Reserved.