語言

Axis.LabelStyle 屬性

定義

取得或設定 LabelStyle 軸的性質。

public:
 property System::Web::UI::DataVisualization::Charting::LabelStyle ^ LabelStyle { System::Web::UI::DataVisualization::Charting::LabelStyle ^ get(); void set(System::Web::UI::DataVisualization::Charting::LabelStyle ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.NoNameExpandableObjectConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.DataVisualization.Charting.LabelStyle LabelStyle { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.NoNameExpandableObjectConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.LabelStyle : System.Web.UI.DataVisualization.Charting.LabelStyle with get, set
Public Property LabelStyle As LabelStyle

屬性值

一個 LabelStyle 物件,定義軸標籤樣式。

屬性

備註

使用此特性來指定軸標籤的樣式、格式等。

若屬性 IsLabelAutoFit 為 true,則字體大小、字體角度及偏移標籤的使用將自動決定。 如果你設定 LabelStyle.Font.Size AngleIsStaggered 或屬性中的任一個,該 IsLabelAutoFit 屬性就會被設定為 false。

請注意,若標籤格式為日期但不標時間,且 DateTime 所用資料點值指定時間,時間會影響資料點的位置,即使因標籤格式未顯示資料點。

適用於