LegendCellCollection.Add(LegendCellType, String, ContentAlignment) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在集合末尾新增一個包含指定儲存格類型、文字與對齊的圖例儲存格。
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
參數
- cellType
- LegendCellType
一個 LegendCellType 代表細胞類型的值。
- text
- String
一個 string 根據參數值,代表儲存格文字或影像名稱 cellType 的值。
- alignment
- ContentAlignment
一個 ContentAlignment 代表細胞內容比對的值。
傳回
一個 integer 代表集合中新新增圖例儲存格索引的值。 此索引是以零為起始。