语言

LegendCellCollection.Insert 方法

定义

在给定位置插入具有指定单元格类型、文本和对齐方式的图例单元格。

public:
 void Insert(int index, System::Windows::Forms::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public void Insert(int index, System.Windows.Forms.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
override this.Insert : int * System.Windows.Forms.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 图例单元格内容的对齐方式的枚举值。

适用于