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

CustomLabelsCollection 物件。

屬性

備註

您可以使用這個屬性來新增或移除軸的自訂標籤。 使用 CustomLabel 物件可讓開發人員任意設定軸標籤的文字。

只有自訂標籤可用於標籤的第二列。 此外,如果在第一個標籤資料列中使用自訂標籤,則第一個資料列中的所有標籤都必須是自訂標籤。

標籤也可以從資料點設定,也可以從軸刻度自動產生。

適用於