Dundas Chart for ASP.NET
Add(String,LegendCellColumnType,String,ContentAlignment) Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > LegendCellColumnCollection Class > Add Method : Add(String,LegendCellColumnType,String,ContentAlignment) Method


headerText
A string value representing the column header text.
A string value representing column header text.
columnType
A LegendCellColumnType value, representing the column type.
A LegendCellColumnType value representing the column 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 LegendCellColumn object to the end of the collection, taking header text, column type, text and alignment values.
Adds a column to the end of the collection.

Syntax

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

Parameters

headerText
A string value representing the column header text.
A string value representing column header text.
columnType
A LegendCellColumnType value, representing the column type.
A LegendCellColumnType value representing the column 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

Index of the added object.
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

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