Udostępnij za pośrednictwem


LegendCellCollection.Insert Metoda

Definicja

Wstawia komórkę legendy z określonym typem komórki, tekstem i wyrównaniem do kolekcji w danej lokalizacji.

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)

Parametry

index
Int32

Indeks lokalizacji do wstawienia obiektu.

cellType
LegendCellType

Wartość LegendCellType reprezentująca typ komórki.

text
String

Wartość reprezentująca tekst komórki lub nazwę obrazu, w zależności od string wartości cellType parametru.

alignment
ContentAlignment

Wartość ContentAlignment wyliczenia reprezentująca wyrównanie zawartości komórki legendy.

Dotyczy