LegendCellCollection.Add(LegendCellType, String, ContentAlignment) Metoda

Definice

Přidá buňku legendy se zadaným typem buňky, textem a zarovnáním na konec kolekce.

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

LegendCellTypeHodnota představující typ buňky

text
String

stringHodnota, která představuje buď text buňky, nebo její název obrázku, v závislosti na hodnotě cellType parametru.

alignment
ContentAlignment

ContentAlignmentHodnota, která představuje zarovnání obsahu buňky.

Návraty

Int32

integerHodnota, která představuje index nově přidané buňky legendy v kolekci. Index je založený na nule.

Platí pro