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::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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för