Axis.LabelStyle 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 LabelStyle 軸的性質。
public:
property System::Windows::Forms::DataVisualization::Charting::LabelStyle ^ LabelStyle { System::Windows::Forms::DataVisualization::Charting::LabelStyle ^ get(); void set(System::Windows::Forms::DataVisualization::Charting::LabelStyle ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.NoNameExpandableObjectConverter))]
public System.Windows.Forms.DataVisualization.Charting.LabelStyle LabelStyle { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.NoNameExpandableObjectConverter))>]
member this.LabelStyle : System.Windows.Forms.DataVisualization.Charting.LabelStyle with get, set
Public Property LabelStyle As LabelStyle
屬性值
一個 LabelStyle 物件,定義軸標籤樣式。
- 屬性
備註
使用此特性來指定軸標籤的樣式、格式等。
若屬性 IsLabelAutoFit 為 true,則字體大小、字體角度及偏移標籤的使用將自動決定。 如果你設定 LabelStyle.Font.Size AngleIsStaggered 或屬性中的任一個,該 IsLabelAutoFit 屬性就會被設定為 false。
請注意,若標籤格式為日期但不標時間,且 DateTime 所用資料點值指定時間,時間會影響資料點的位置,即使因標籤格式未顯示資料點。