Series.ChartArea プロパティ

定義

データ系列のプロットに使用される ChartArea オブジェクトの名前を取得または設定します (存在する場合)。Gets or sets the name of the ChartArea object used to plot the data series, if any.

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

プロパティ値

String

系列のプロットに使用される ChartArea オブジェクトを表す string 値。A string value that represents a ChartArea object, which is used to plot the series.

属性

' 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";  

}  

注釈

系列がデザイン時と実行時の両方で追加されると、自動的に "Default" オブジェクトに割り当てられる ChartArea か、または "default" が存在しない場合はの最初の使用可能なグラフ領域が割り当てられ ChartAreaCollection ます。When a series is added at both design time and run time, it is automatically assigned to the "Default" ChartArea object, or the first available chart area in the ChartAreaCollection if "Default" does not exist.

系列をプロットしない場合は、このプロパティを長さ0の文字列に設定します。Set this property to a zero-length string if you do not want the series to be plotted.

適用対象