Langue

LegendCellCollection.Insert Méthode

Définition

Insère une cellule de légende avec le type de cellule, le texte et l’alignement spécifiés dans la collection à un emplacement donné.

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)

Paramètres

index
Int32

Index de l’emplacement pour insérer l’objet.

cellType
LegendCellType

Valeur LegendCellType qui représente le type de cellule.

text
String

Valeur string qui représente le texte de la cellule ou son nom d’image, en fonction de la valeur du cellType paramètre.

alignment
ContentAlignment

Valeur ContentAlignment d’énumération qui représente l’alignement du contenu de cellule de légende.

S’applique à