Dundas Chart for Windows Forms
Insert(Int32,String,LegendCellColumnType,String,ContentAlignment) Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > LegendCellColumnCollection Class > Insert Method : Insert(Int32,String,LegendCellColumnType,String,ContentAlignment) Method


index
Index to insert the object at.
Index to insert the object at.
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 column cell text or its image name, depending on the cellType parameter.
A string value representing column cell text or image name depending on the cellType parameter.
alignment
Alignment of cell contents.
A ContentAlignment value representing column cell content alignment.
Inserts a LegendCellColumn object into the collection at the given location, taking the header text, column type, text and alignment.
Inserts a legend column into the collection.

Syntax

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

Parameters

index
Index to insert the object at.
Index to insert the object at.
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 column cell text or its image name, depending on the cellType parameter.
A string value representing column cell text or image name depending on the cellType parameter.
alignment
Alignment of cell contents.
A ContentAlignment value representing column 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

© 2009 All Rights Reserved.