LegendCellCollection.Add(LegendCellType, String, ContentAlignment) Metoda

Definicja

Dodaje komórkę legendy z określonym typem komórki, tekstem i wyrównaniem do końca kolekcji.

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

Parametry

cellType
LegendCellType

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

text
String

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

alignment
ContentAlignment

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

Zwraca

Wartość integer reprezentująca indeks nowo dodanej komórki legendy w kolekcji. Jest to indeks zaczynający się od zera.

Dotyczy