Share via


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.Web.UI.DataVisualization.Charting.LegendCell : string -> System.Web.UI.DataVisualization.Charting.LegendCell
Public Sub New (text As String)

參數

text
String

string 值,根據資料格類型表示資料格文字或影像名稱。

適用於

LegendCell(LegendCellType, String)

使用指定的資料格類型以及指定資料格文字或影像名稱的 text 參數,初始化 LegendCell 類別的新執行個體。

public:
 LegendCell(System::Web::UI::DataVisualization::Charting::LegendCellType cellType, System::String ^ text);
public LegendCell (System.Web.UI.DataVisualization.Charting.LegendCellType cellType, string text);
new System.Web.UI.DataVisualization.Charting.LegendCell : System.Web.UI.DataVisualization.Charting.LegendCellType * string -> System.Web.UI.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::Web::UI::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public LegendCell (System.Web.UI.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
new System.Web.UI.DataVisualization.Charting.LegendCell : System.Web.UI.DataVisualization.Charting.LegendCellType * string * System.Drawing.ContentAlignment -> System.Web.UI.DataVisualization.Charting.LegendCell
Public Sub New (cellType As LegendCellType, text As String, alignment As ContentAlignment)

參數

cellType
LegendCellType

LegendCellType 值,表示要使用的圖例資料格類型。

text
String

string 值,根據資料格類型表示資料格文字或影像名稱。

alignment
ContentAlignment

ContentAlignment 值,表示圖例資料格內容的對齊方式。

適用於