Series.ChartArea Özellik

Tanım

Varsa, veri serisini ChartArea çizmek için kullanılan nesnenin adını alır veya ayarlar.

public:
 property System::String ^ ChartArea { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.SeriesAreaNameConverter))]
public string ChartArea { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.SeriesAreaNameConverter))>]
member this.ChartArea : string with get, set
Public Property ChartArea As String

Özellik Değeri

Seriyi string çizmek için kullanılan bir ChartArea nesneyi temsil eden değer.

Öznitelikler

Örnekler

' Create a new legend and associate three series with the legend.
Public Sub CreateSecondLegend()
    ' Attach the first series to a chart area.
    Chart1.Series["Series1"].ChartArea = "Chart Area 1";

    ' Attach the second series to a chart area.
    Chart1.Series["Series2"].ChartArea = "Chart Area 2";

End Sub 'CreateSecondLegend
// Create a new legend and associate three series with the legend.
public void CreateSecondLegend()
{
     // Attach the first series to a chart area.
     Chart1.Series["Series1"].ChartArea = "Chart Area 1";

     // Attach the second series to a chart area.
     Chart1.Series["Series2"].ChartArea = "Chart Area 2";

}

Açıklamalar

Bir seri hem tasarım zamanında hem de çalışma zamanında eklendiğinde, otomatik olarak "Varsayılan" nesnesine veya "Varsayılan" ChartArea yoksa ilk kullanılabilir grafik alanına ChartAreaCollection atanır.

Serinin çizilmesi istemiyorsanız bu özelliği sıfır uzunluklu bir dize olarak ayarlayın.

Şunlara uygulanır