CustomLabelsCollection.Add メソッド

定義

CustomLabel オブジェクトをコレクションに追加します。

オーバーロード

Add(Double, DateTimeIntervalType)

コレクションに CustomLabel 型の複数の DateTime オブジェクトを追加します。 軸の最初の行全体にラベルを設定します。

Add(Double, Double, String)

指定された軸の範囲とテキストを使用して、コレクションに CustomLabel オブジェクトを追加します。

Add(Double, DateTimeIntervalType, String)

コレクションに複数の DateTimeCustomLabelsCollection オブジェクトを追加します。 軸の最初の行全体に指定された書式のラベルを設定します。

Add(Double, Double, String, Int32, LabelMarkStyle)

指定された軸の範囲、テキスト、行インデックス、およびマーキング スタイルを使用して、コレクションにカスタム ラベルを追加します。

Add(Double, DateTimeIntervalType, String, Int32, LabelMarkStyle)

コレクションに複数のカスタム ラベルを追加します。 ラベルは、間隔の種類、テキストの書式、行インデックス、およびマーキング スタイルが指定された DateTime ラベルになります。

Add(Double, Double, String, Int32, LabelMarkStyle, GridTickTypes)

指定された軸の範囲、テキスト、行インデックス、マーキング スタイル、およびグリッドの目盛りの種類を使用して、コレクションにカスタム ラベルを追加します。

Add(Double, DateTimeIntervalType, Double, Double, String, Int32, LabelMarkStyle)

コレクションに複数のカスタム ラベルを追加します。 ラベルは間隔の種類が指定された DateTime ラベルになり、引数 min と引数 max で指定された軸の範囲に対して生成されます。

Add(Double, DateTimeIntervalType)

コレクションに CustomLabel 型の複数の DateTime オブジェクトを追加します。 軸の最初の行全体にラベルを設定します。

public:
 void Add(double labelsStep, System::Windows::Forms::DataVisualization::Charting::DateTimeIntervalType intervalType);
public void Add (double labelsStep, System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType intervalType);
override this.Add : double * System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType -> unit
Public Sub Add (labelsStep As Double, intervalType As DateTimeIntervalType)

パラメーター

labelsStep
Double

カスタム ラベルを描画する頻度を決定する Double 値。

intervalType
DateTimeIntervalType

間隔の種類を示す DateTimeIntervalType 列挙値。

注釈

メソッドは Add 、指定した型の CustomLabel ラベルを持つ軸の最初のラベル行全体のオブジェクトを作成および DateTime 初期化します。

パラメーターは labelsStep 、カスタム ラベルを描画する頻度を決定します。

注意

メソッドは、この特定の RecalculateAxesScale メソッド定義を呼び出す前に呼び出す必要があります。

適用対象

Add(Double, Double, String)

指定された軸の範囲とテキストを使用して、コレクションに CustomLabel オブジェクトを追加します。

public:
 System::Windows::Forms::DataVisualization::Charting::CustomLabel ^ Add(double fromPosition, double toPosition, System::String ^ text);
public System.Windows.Forms.DataVisualization.Charting.CustomLabel Add (double fromPosition, double toPosition, string text);
override this.Add : double * double * string -> System.Windows.Forms.DataVisualization.Charting.CustomLabel
Public Function Add (fromPosition As Double, toPosition As Double, text As String) As CustomLabel

パラメーター

fromPosition
Double

ラベルを適用する軸の範囲の最小値。

toPosition
Double

ラベルを適用する軸の範囲の最大値。

text
String

ラベル テキスト。

戻り値

新しく追加された CustomLabel オブジェクトです。

注釈

関連する軸の最初のラベル行に 1 つのカスタム ラベルを追加します。 ラベル マークは使用されません。

最初のラベル行の任意の場所でカスタム ラベルが使用されている場合、その最初の行に対してラベルは自動的に生成されません。

注意

メソッドは、この特定の RecalculateAxesScale メソッド定義を呼び出す前に呼び出す必要があります。

適用対象

Add(Double, DateTimeIntervalType, String)

コレクションに複数の DateTimeCustomLabelsCollection オブジェクトを追加します。 軸の最初の行全体に指定された書式のラベルを設定します。

public:
 void Add(double labelsStep, System::Windows::Forms::DataVisualization::Charting::DateTimeIntervalType intervalType, System::String ^ format);
public void Add (double labelsStep, System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType intervalType, string format);
override this.Add : double * System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType * string -> unit
Public Sub Add (labelsStep As Double, intervalType As DateTimeIntervalType, format As String)

パラメーター

labelsStep
Double

カスタム ラベルを描画する頻度を決定する Double 値。

intervalType
DateTimeIntervalType

labelsStep パラメーターの単位を指定する DateTimeIntervalType 列挙値。

format
String

カスタム ラベルの書式を指定する値。

注釈

このメソッドは、指定した型の CustomLabel ラベルを使用して、軸の最初のラベル行全体のオブジェクトを作成および DateTime 初期化します。

この手順では、カスタム ラベルを描画する頻度を決定し、オプションのラベルの書式設定も指定できます。

注意

メソッドは、この特定の RecalculateAxesScale メソッド定義を呼び出す前に呼び出す必要があります。

適用対象

Add(Double, Double, String, Int32, LabelMarkStyle)

指定された軸の範囲、テキスト、行インデックス、およびマーキング スタイルを使用して、コレクションにカスタム ラベルを追加します。

public:
 System::Windows::Forms::DataVisualization::Charting::CustomLabel ^ Add(double fromPosition, double toPosition, System::String ^ text, int rowIndex, System::Windows::Forms::DataVisualization::Charting::LabelMarkStyle markStyle);
public System.Windows.Forms.DataVisualization.Charting.CustomLabel Add (double fromPosition, double toPosition, string text, int rowIndex, System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle markStyle);
override this.Add : double * double * string * int * System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle -> System.Windows.Forms.DataVisualization.Charting.CustomLabel
Public Function Add (fromPosition As Double, toPosition As Double, text As String, rowIndex As Integer, markStyle As LabelMarkStyle) As CustomLabel

パラメーター

fromPosition
Double

ラベルを適用する軸の範囲の最小値。

toPosition
Double

ラベルを適用する軸の範囲の最大値。

text
String

ラベル テキスト。

rowIndex
Int32

ラベルの行インデックス。

markStyle
LabelMarkStyle

ラベルのマーク スタイルを指定する LabelMarkStyle 列挙値。

戻り値

新しく追加された CustomLabel オブジェクトです。

適用対象

Add(Double, DateTimeIntervalType, String, Int32, LabelMarkStyle)

コレクションに複数のカスタム ラベルを追加します。 ラベルは、間隔の種類、テキストの書式、行インデックス、およびマーキング スタイルが指定された DateTime ラベルになります。

public:
 void Add(double labelsStep, System::Windows::Forms::DataVisualization::Charting::DateTimeIntervalType intervalType, System::String ^ format, int rowIndex, System::Windows::Forms::DataVisualization::Charting::LabelMarkStyle markStyle);
public void Add (double labelsStep, System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType intervalType, string format, int rowIndex, System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle markStyle);
override this.Add : double * System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType * string * int * System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle -> unit
Public Sub Add (labelsStep As Double, intervalType As DateTimeIntervalType, format As String, rowIndex As Integer, markStyle As LabelMarkStyle)

パラメーター

labelsStep
Double

カスタム ラベルを描画する頻度を決定する Double 値。

intervalType
DateTimeIntervalType

labelsStep パラメーターの単位を指定する DateTimeIntervalType 列挙値。

format
String

ラベル テキストの書式。

rowIndex
Int32

ラベルの行インデックス。

markStyle
LabelMarkStyle

ラベルのマーク スタイルを指定する LabelMarkStyle 列挙値。

適用対象

Add(Double, Double, String, Int32, LabelMarkStyle, GridTickTypes)

指定された軸の範囲、テキスト、行インデックス、マーキング スタイル、およびグリッドの目盛りの種類を使用して、コレクションにカスタム ラベルを追加します。

public:
 System::Windows::Forms::DataVisualization::Charting::CustomLabel ^ Add(double fromPosition, double toPosition, System::String ^ text, int rowIndex, System::Windows::Forms::DataVisualization::Charting::LabelMarkStyle markStyle, System::Windows::Forms::DataVisualization::Charting::GridTickTypes gridTick);
public System.Windows.Forms.DataVisualization.Charting.CustomLabel Add (double fromPosition, double toPosition, string text, int rowIndex, System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle markStyle, System.Windows.Forms.DataVisualization.Charting.GridTickTypes gridTick);
override this.Add : double * double * string * int * System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle * System.Windows.Forms.DataVisualization.Charting.GridTickTypes -> System.Windows.Forms.DataVisualization.Charting.CustomLabel
Public Function Add (fromPosition As Double, toPosition As Double, text As String, rowIndex As Integer, markStyle As LabelMarkStyle, gridTick As GridTickTypes) As CustomLabel

パラメーター

fromPosition
Double

ラベルを適用する軸の範囲の最小値。

toPosition
Double

ラベルを適用する軸の範囲の最大値。

text
String

ラベル テキスト。

rowIndex
Int32

ラベルの行インデックス。

markStyle
LabelMarkStyle

ラベルのマーク スタイルを指定する LabelMarkStyle 列挙値。

gridTick
GridTickTypes

ラベルのグリッドの目盛りの種類を指定する GridTickTypes 列挙値。

戻り値

新しく追加された CustomLabel オブジェクトです。

適用対象

Add(Double, DateTimeIntervalType, Double, Double, String, Int32, LabelMarkStyle)

コレクションに複数のカスタム ラベルを追加します。 ラベルは間隔の種類が指定された DateTime ラベルになり、引数 min と引数 max で指定された軸の範囲に対して生成されます。

public:
 void Add(double labelsStep, System::Windows::Forms::DataVisualization::Charting::DateTimeIntervalType intervalType, double min, double max, System::String ^ format, int rowIndex, System::Windows::Forms::DataVisualization::Charting::LabelMarkStyle markStyle);
public void Add (double labelsStep, System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType intervalType, double min, double max, string format, int rowIndex, System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle markStyle);
override this.Add : double * System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType * double * double * string * int * System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle -> unit
Public Sub Add (labelsStep As Double, intervalType As DateTimeIntervalType, min As Double, max As Double, format As String, rowIndex As Integer, markStyle As LabelMarkStyle)

パラメーター

labelsStep
Double

カスタム ラベルを描画する頻度を決定する Double 値。

intervalType
DateTimeIntervalType

labelsStep パラメーターの単位を指定する DateTimeIntervalType 列挙値。

min
Double

軸範囲の最小値。

max
Double

軸範囲の最大値。

format
String

ラベル テキストの書式。

rowIndex
Int32

ラベルの行インデックス。

markStyle
LabelMarkStyle

ラベルのマーク スタイルを指定する LabelMarkStyle 列挙値。

適用対象