LegendCell 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 LegendCell 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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 圖例格內容的對齊值。