語言

LegendItem 建構函式

定義

初始化 LegendItem 類別的新執行個體。

多載

名稱 Description
LegendItem()

初始化 LegendItem 類別的新執行個體。

LegendItem(String, Color, String)

初始化一個以指定名稱、顏色和影像路徑的新類別實例 LegendItem 。

LegendItem()

初始化 LegendItem 類別的新執行個體。

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

備註

使用此建構子來建立並初始化該類別的新實例 LegendItem 。

請注意,你也可以使用Add物件集合屬性Insert所關聯的 and CustomItems 方法來新增自訂的Legend圖例項目。

適用於

LegendItem(String, Color, String)

初始化一個以指定名稱、顏色和影像路徑的新類別實例 LegendItem 。

public:
 LegendItem(System::String ^ name, System::Drawing::Color color, System::String ^ image);
public LegendItem(string name, System.Drawing.Color color, string image);
new System.Windows.Forms.DataVisualization.Charting.LegendItem : string * System.Drawing.Color * string -> System.Windows.Forms.DataVisualization.Charting.LegendItem
Public Sub New (name As String, color As Color, image As String)

參數

name
String

傳說物品的名字。

color
Color

傳說物品的顏色。

image
String

圖例項目中圖片的路徑。

備註

只需要 image 指定 or color 參數即可。 若兩者皆指定,則 image 該參數具有優先權。

適用於