欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 健康 > 养生 > winform中chart的Axis.LabelStyle 属性

winform中chart的Axis.LabelStyle 属性

2024/10/24 16:33:38 来源:https://blog.csdn.net/Pei_hua100/article/details/141723450  浏览:    关键词:winform中chart的Axis.LabelStyle 属性

Axis.LabelStyle 属性

定义

命名空间:

System.Windows.Forms.DataVisualization.Charting

程序集:

System.Windows.Forms.DataVisualization.dll

获取或设置轴的 LabelStyle 属性。

C#复制

[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.NoNameExpandableObjectConverter))]
public System.Windows.Forms.DataVisualization.Charting.LabelStyle LabelStyle { get; set; }
属性值

LabelStyle

一个 LabelStyle 对象,该对象用于定义轴标签样式。

属性

BindableAttribute TypeConverterAttribute

注解

使用此属性可以指定轴标签的样式、格式设置等。

IsLabelAutoFit如果 属性为 true,则会自动确定字号、字体角度和偏移标签的使用。 如果设置 LabelStyle.Font.Size Angle 或 IsStaggered 属性中的任何一个,则 IsLabelAutoFit 属性将设置为 false

请注意,如果标签使用由日期不带时间的日期组成的格式,并且 DateTime 使用的数据点值指定时间,则时间将影响数据点的位置,即使由于标签格式而未显示它们。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com