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


index
Index to insert the object at.
Index to insert the object at.
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 alignment of the legend cell content.
A ContentAlignment value representing cell content alignment.
Inserts a legend cell with the given cell type, text and alignment into the collection at a given location.
Inserts a cell into the collection.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub Insert( _
   ByVal index As Integer, _
   ByVal cellType As LegendCellType, _
   ByVal text As String, _
   ByVal alignment As ContentAlignment _
) 
Visual Basic (Usage) Copy Code
Dim instance As LegendCellCollection
Dim index As Integer
Dim cellType As LegendCellType
Dim text As String
Dim alignment As ContentAlignment
 
instance.Insert(index, cellType, text, alignment)
C#  
public void Insert( 
   int index,
   LegendCellType cellType,
   string text,
   ContentAlignment alignment
)

Parameters

index
Index to insert the object at.
Index to insert the object at.
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 alignment of the legend cell content.
A ContentAlignment value representing cell content alignment.

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.