Udostępnij za pośrednictwem


Axis.LabelStyle Właściwość

Definicja

Pobiera lub ustawia LabelStyle właściwości osi.

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

Wartość właściwości

LabelStyle Obiekt, który definiuje styl etykiety osi.

Atrybuty

Uwagi

Ta właściwość służy do określania stylu, formatowania itd. etykiet osi.

IsLabelAutoFit Jeśli właściwość to true, rozmiar czcionki, kąt czcionki i użycie etykiet przesunięcia są określane automatycznie. Jeśli ustawisz dowolną z właściwości LabelStyle.Font.Size Angle lub IsStaggered , IsLabelAutoFit właściwość zostanie ustawiona na falsewartość .

Należy pamiętać, że jeśli format składający się z daty bez godziny jest używany dla etykiet, a DateTime wartości punktów danych, które są używane w określonych godzinach, czasy będą miały wpływ na pozycje punktów danych, mimo że nie są wyświetlane z powodu formatowania etykiety.

Dotyczy