LegendCellCollection.Add(LegendCellType, String, ContentAlignment) Метод

Определение

Добавляет в конец коллекции ячейку легенды с указанными типом ячейки, текстом и выравниванием.

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

Параметры

cellType
LegendCellType

Значение LegendCellType, представляющее тип ячейки.

text
String

Значение типа string, представляющее текст ячейки или имя изображения в зависимости от значения параметра cellType.

alignment
ContentAlignment

Значение ContentAlignment, представляющее выравнивание содержимого ячейки.

Возвращаемое значение

Int32

Значение типа integer, представляющее индекс только что добавленной ячейки легенды в коллекции. Индексация начинается с нуля.

Применяется к