LegendCellCollection.Insert Method

Definition

Inserts a legend cell with the specified cell type, text and alignment into the collection at a given location.

public:
 void Insert(int index, System::Windows::Forms::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public void Insert (int index, System.Windows.Forms.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
override this.Insert : int * System.Windows.Forms.DataVisualization.Charting.LegendCellType * string * System.Drawing.ContentAlignment -> unit
Public Sub Insert (index As Integer, cellType As LegendCellType, text As String, alignment As ContentAlignment)

Parameters

index
Int32

Index of the location to insert the object.

cellType
LegendCellType

A LegendCellType value that represents the cell type.

text
String

A string value that represents either the cell text or its image name, depending on the value of the cellType parameter.

alignment
ContentAlignment

A ContentAlignment enumeration value that represents the alignment of the legend cell content.

Applies to