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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應