Udostępnij za pośrednictwem


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::Web::UI::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public int Add (System.Web.UI.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
override this.Add : System.Web.UI.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

LegendCellTypeWartość reprezentująca typ komórki.

text
String

stringWartość, która reprezentuje tekst komórki lub jego nazwę obrazu, w zależności od wartości cellType parametru.

alignment
ContentAlignment

ContentAlignmentWartość, która reprezentuje wyrównanie zawartości komórki.

Zwraca

Int32

integerWartość, która reprezentuje indeks nowo dodanej komórki legendy w kolekcji. Jest to indeks zaczynający się od zera.

Dotyczy