แก้ไข

แชร์ผ่าน


LegendCellCollection.Add(LegendCellType, String, ContentAlignment) Method

Definition

Adds a legend cell with the specified cell type, text and alignment to the end of the collection.

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

Parameters

cellType
LegendCellType

A LegendCellType value representing the cell type.

text
String

A string value that represents either the cell text or its image name, depending on the value of the cellType parameter.

alignment
ContentAlignment

A ContentAlignment value that represents the cell content alignment.

Returns

An integer value that represents the index of the newly added legend cell in the collection. The index is zero-based.

Applies to