Share via


CustomLabel 构造函数

定义

创建 CustomLabel 类的新实例。

重载

CustomLabel()

创建 CustomLabel 类的新实例。

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

用指定的 fromPositiontoPositiontextlabelRowmarkStyle 参数初始化 CustomLabel 类的新实例。

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

用指定的 fromPositiontoPositiontextlabelRowmarkStylegridTick 参数初始化 CustomLabel 类的新实例。

CustomLabel()

创建 CustomLabel 类的新实例。

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

注解

此构造函数可用于创建和初始化 类的新实例 CustomLabel

但是,建议使用 类中的CustomLabelsCollection方法之Add一来添加自定义标签。

适用于

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

用指定的 fromPositiontoPositiontextlabelRowmarkStyle 参数初始化 CustomLabel 类的新实例。

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)

用指定的 fromPositiontoPositiontextlabelRowmarkStylegridTick 参数初始化 CustomLabel 类的新实例。

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

自定义网格线和/或刻度线标志。

适用于