Share via


Axis.CustomLabels 属性

定义

获取用于存储 CustomLabelsCollection 对象的 CustomLabel 对象。

public:
 property System::Windows::Forms::DataVisualization::Charting::CustomLabelsCollection ^ CustomLabels { System::Windows::Forms::DataVisualization::Charting::CustomLabelsCollection ^ get(); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.CustomLabelsCollection CustomLabels { get; }
[<System.ComponentModel.Bindable(true)>]
member this.CustomLabels : System.Windows.Forms.DataVisualization.Charting.CustomLabelsCollection
Public ReadOnly Property CustomLabels As CustomLabelsCollection

属性值

CustomLabelsCollection 对象。

属性

注解

使用此属性可添加或删除轴的自定义标签。 使用 CustomLabel 对象,开发人员可以任意设置轴标签的文本。

第二行标签中只能使用自定义标签。 此外,如果在第一个标签行中使用自定义标签,则第一行中的所有标签都必须是自定义标签。

还可以从数据点设置标签,也可以从轴刻度自动生成标签。

适用于