LegendCellCollection.Add(LegendCellType, String, ContentAlignment) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a legend cell with the specified cell type, text and alignment to the end of the collection.
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
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.