LegendCell 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 LegendCell 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| LegendCell() |
初始化 LegendCell 类的新实例。 |
| LegendCell(String) |
使用指定LegendCell单元格文本或图像名称的参数初始化类的新实例 |
| LegendCell(LegendCellType, String) |
使用指定的单元格类型和LegendCell指定单元格文本或图像名称的参数初始化类的新实例 |
| LegendCell(LegendCellType, String, ContentAlignment) |
使用指定的单元格类型、内容对齐方式和LegendCell指定单元格文本或图像名称的参数初始化类的新实例 |
LegendCell()
LegendCell(String)
使用指定LegendCell单元格文本或图像名称的参数初始化类的新实例text。
public:
LegendCell(System::String ^ text);
public LegendCell(string text);
new System.Windows.Forms.DataVisualization.Charting.LegendCell : string -> System.Windows.Forms.DataVisualization.Charting.LegendCell
Public Sub New (text As String)
参数
- text
- String
表示 string 单元格文本或图像名称的值,具体取决于单元格的类型。
适用于
LegendCell(LegendCellType, String)
使用指定的单元格类型和LegendCell指定单元格文本或图像名称的参数初始化类的新实例text。
public:
LegendCell(System::Windows::Forms::DataVisualization::Charting::LegendCellType cellType, System::String ^ text);
public LegendCell(System.Windows.Forms.DataVisualization.Charting.LegendCellType cellType, string text);
new System.Windows.Forms.DataVisualization.Charting.LegendCell : System.Windows.Forms.DataVisualization.Charting.LegendCellType * string -> System.Windows.Forms.DataVisualization.Charting.LegendCell
Public Sub New (cellType As LegendCellType, text As String)
参数
- cellType
- LegendCellType
一个 LegendCellType 值,表示要使用的图例单元格类型。
- text
- String
表示单元格文本或图像名称的字符串值,具体取决于单元格的类型。
适用于
LegendCell(LegendCellType, String, ContentAlignment)
使用指定的单元格类型、内容对齐方式和LegendCell指定单元格文本或图像名称的参数初始化类的新实例text。
public:
LegendCell(System::Windows::Forms::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public LegendCell(System.Windows.Forms.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
new System.Windows.Forms.DataVisualization.Charting.LegendCell : System.Windows.Forms.DataVisualization.Charting.LegendCellType * string * System.Drawing.ContentAlignment -> System.Windows.Forms.DataVisualization.Charting.LegendCell
Public Sub New (cellType As LegendCellType, text As String, alignment As ContentAlignment)
参数
- cellType
- LegendCellType
一个 LegendCellType 值,表示要使用的图例单元格类型。
- text
- String
一个 string 表示单元格文本或图像名称的值,具体取决于单元格的类型。
- alignment
- ContentAlignment
一个 ContentAlignment 表示图例单元格内容的对齐方式的值。