語言

CustomLabel 建構函式

定義

建立一個新的類別實例 CustomLabel 。

多載

名稱 Description
CustomLabel()

建立一個新的類別實例 CustomLabel 。

CustomLabel(Double, Double, String, Int32, LabelMarkStyle)

初始化類別的新實例CustomLabel,包含指定的 fromPosition、 toPosition、 text、 labelRowmarkStyle 和 參數。

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

初始化類別的新實例CustomLabel,包含指定的 fromPosition、 toPosition、 text、 labelRowmarkStylegridTick 和 參數。

CustomLabel()

建立一個新的類別實例 CustomLabel 。

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

備註

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

不過,建議你使用 Add 本類別中 CustomLabelsCollection 的方法之一來新增自訂標籤。

適用於

CustomLabel(Double, Double, String, Int32, LabelMarkStyle)

初始化類別的新實例CustomLabel,包含指定的 fromPosition、 toPosition、 text、 labelRowmarkStyle 和 參數。

public:
 CustomLabel(double fromPosition, double toPosition, System::String ^ text, int labelRow, System::Windows::Forms::DataVisualization::Charting::LabelMarkStyle markStyle);
public CustomLabel(double fromPosition, double toPosition, string text, int labelRow, System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle markStyle);
new System.Windows.Forms.DataVisualization.Charting.CustomLabel : double * double * string * int * System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle -> System.Windows.Forms.DataVisualization.Charting.CustomLabel
Public Sub New (fromPosition As Double, toPosition As Double, text As String, labelRow As Integer, markStyle As LabelMarkStyle)

參數

fromPosition
Double

標籤所適用軸域的起點。

toPosition
Double

標籤所適用的軸線範圍末端。

text
String

標籤上的文字。

labelRow
Int32

標籤列索引。

markStyle
LabelMarkStyle

標籤標記風格。

適用於

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

初始化類別的新實例CustomLabel,包含指定的 fromPosition、 toPosition、 text、 labelRowmarkStylegridTick 和 參數。

public:
 CustomLabel(double fromPosition, double toPosition, System::String ^ text, int labelRow, System::Windows::Forms::DataVisualization::Charting::LabelMarkStyle markStyle, System::Windows::Forms::DataVisualization::Charting::GridTickTypes gridTick);
public CustomLabel(double fromPosition, double toPosition, string text, int labelRow, System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle markStyle, System.Windows.Forms.DataVisualization.Charting.GridTickTypes gridTick);
new System.Windows.Forms.DataVisualization.Charting.CustomLabel : double * double * string * int * System.Windows.Forms.DataVisualization.Charting.LabelMarkStyle * System.Windows.Forms.DataVisualization.Charting.GridTickTypes -> System.Windows.Forms.DataVisualization.Charting.CustomLabel
Public Sub New (fromPosition As Double, toPosition As Double, text As String, labelRow As Integer, markStyle As LabelMarkStyle, gridTick As GridTickTypes)

參數

fromPosition
Double

標籤所適用軸域的起點。

toPosition
Double

標籤所適用的軸線範圍末端。

text
String

標籤上的文字。

labelRow
Int32

標籤列索引。

markStyle
LabelMarkStyle

標籤標記風格。

gridTick
GridTickTypes

自訂格線和/或勾選標記標記。

適用於