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 Angle 或 IsStaggered 属性,该 IsLabelAutoFit 属性将设置为 false。
请注意,如果包含不带时间的日期的格式用于标签,以及 DateTime 使用指定时间的数据点值,则时间将影响数据点的位置,即使由于标签格式未显示它们。