LegendItem Konstruktory

Definice

Inicializuje novou instanci LegendItem třídy.

Přetížení

Name Description
LegendItem()

Inicializuje novou instanci LegendItem třídy.

LegendItem(String, Color, String)

Inicializuje novou instanci LegendItem třídy se zadaným názvem, barvou a cestou k obrázku.

LegendItem()

Inicializuje novou instanci LegendItem třídy.

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

Poznámky

Tento konstruktor slouží k vytvoření a inicializaci nové instance LegendItem třídy.

Všimněte si, že můžete také přidat vlastní položky legendy Add pomocí a Insert metod přidružených k CustomItems vlastnosti kolekce objektu Legend .

Platí pro

LegendItem(String, Color, String)

Inicializuje novou instanci LegendItem třídy se zadaným názvem, barvou a cestou k obrázku.

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)

Parametry

name
String

Název položky legendy

color
Color

Barva položky legendy

image
String

Cesta k obrázku, který se má zobrazit pro položku legendy.

Poznámky

image color Je potřeba zadat pouze parametr. Pokud je zadáno image obojí, má parametr přednost.

Platí pro