LegendCell 构造函数

定义

初始化 LegendCell 类的新实例。

重载

LegendCell()

初始化 LegendCell 类的新实例。

LegendCell(String)

使用指定单元格文本或图像名称的 text 参数初始化 LegendCell 类的新实例。

LegendCell(LegendCellType, String)

使用指定的单元格类型以及指定单元格文本或图像名称的 text 参数初始化 LegendCell 类的新实例。

LegendCell(LegendCellType, String, ContentAlignment)

使用指定的单元格类型、内容对齐方式以及指定单元格文本或图像名称的 text 参数初始化 LegendCell 类的新实例。

LegendCell()

初始化 LegendCell 类的新实例。

public:
 LegendCell();
public LegendCell ();
Public Sub New ()

适用于

LegendCell(String)

使用指定单元格文本或图像名称的 text 参数初始化 LegendCell 类的新实例。

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)

使用指定的单元格类型以及指定单元格文本或图像名称的 text 参数初始化 LegendCell 类的新实例。

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)

使用指定的单元格类型、内容对齐方式以及指定单元格文本或图像名称的 text 参数初始化 LegendCell 类的新实例。

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 值,该值表示图例单元格内容的对齐方式。

适用于