CustomLabel 构造函数

定义

创建类的新实例 CustomLabel

重载

名称 说明
CustomLabel()

创建类的新实例 CustomLabel

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

使用指定的CustomLabelfromPositiontoPositiontextlabelRow参数初始化类的新实例markStyle

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

使用指定的CustomLabelfromPositiontoPositiontextlabelRowmarkStyle参数初始化类的新实例。gridTick

CustomLabel()

创建类的新实例 CustomLabel

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

注解

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

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

适用于

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

使用指定的CustomLabelfromPositiontoPositiontextlabelRow参数初始化类的新实例markStyle

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)

使用指定的CustomLabelfromPositiontoPositiontextlabelRowmarkStyle参数初始化类的新实例。gridTick

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

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

适用于