Share via


LegendCellCollection.Insert 方法

定義

將具有指定的資料格類型、文字與對齊方式之圖例資料格插入到集合中的特定位置。

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 列舉值,表示圖例資料格內容的對齊方式。

適用於