LegendCellCollection.Insert 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定位置插入包含指定儲存格類型、文字與對齊的圖例儲存格。
public:
void Insert(int index, System::Web::UI::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public void Insert(int index, System.Web.UI.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
override this.Insert : int * System.Web.UI.DataVisualization.Charting.LegendCellType * string * System.Drawing.ContentAlignment -> unit
Public Sub Insert (index As Integer, cellType As LegendCellType, text As String, alignment As ContentAlignment)
參數
- index
- Int32
插入物件位置的索引。
- cellType
- LegendCellType
一個 LegendCellType 代表細胞類型的值。
- text
- String
一個 string 根據參數值,代表儲存格文字或影像名稱 cellType 的值。
- alignment
- ContentAlignment
一個 ContentAlignment 枚舉值,代表圖例格子內容的對齊。