LegendCellCollection.Insert 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在给定位置插入具有指定单元格类型、文本和对齐方式的图例单元格。
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 图例单元格内容的对齐方式的枚举值。