LegendCellCollection.Add(LegendCellType, String, ContentAlignment) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将具有指定单元格类型、文本和对齐方式的图例单元格添加到集合末尾。
public:
int Add(System::Web::UI::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public int Add(System.Web.UI.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
override this.Add : System.Web.UI.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 值,表示集合中新添加的图例单元格的索引。 索引从零开始。