LabelStyle 类

定义

提供用于定义轴标签可视外观的属性。Provides properties that define the visual appearance of the axis labels.

public ref class LabelStyle : System::Windows::Forms::DataVisualization::Charting::ChartElement
public class LabelStyle : System.Windows.Forms.DataVisualization.Charting.ChartElement
type LabelStyle = class
    inherit ChartElement
Public Class LabelStyle
Inherits ChartElement
继承
LabelStyle

注解

此类的成员还用于计算轴标签的间隔和位置, 并用于绘制轴标签。Members of this class are also used to calculate the intervals and positions of the axis labels, and to draw them.

构造函数

LabelStyle()

初始化 LabelStyle 类的新实例。Initializes a new instance of the LabelStyle class.

属性

Angle

获取或设置一个值,该值表示绘制字体所用的角度。Gets or sets a value that represents the angle at which the font is drawn.

Enabled

获取或设置一个标志,该标志指示是否启用了标签。Gets or sets a flag that indicates whether the label is enabled.

Font

获取或设置标签的字体。Gets or sets the font of the label.

ForeColor

获取或设置标签的颜色。Gets or sets the color of the label.

Format

获取或设置标签文本的格式字符串。Gets or sets the formatting string for the label text.

Interval

获取或设置标签间隔的大小。Gets or sets the size of the label interval.

IntervalOffset

获取或设置标签间隔的偏移量。Gets or sets the offset of the label interval.

IntervalOffsetType

获取或设置标签间隔偏移量的度量单位。Gets or sets the unit of measurement of the label interval offset.

IntervalType

获取或设置标签间隔大小的度量单位。Gets or sets the unit of measurement for the size of a label interval.

IsEndLabelVisible

获取或设置一个标志,该标志确定是否在轴的末尾显示标签。Gets or sets a flag that determines whether the labels are shown at axis ends.

IsStaggered

获取或设置一个标志,该标志确定标签是否显示为带有偏移量。Gets or sets a flag that determines whether the labels are shown with an offset.

Tag

获取或设置与此图表元素关联的对象。Gets or sets an object associated with this chart element.

(继承自 ChartElement)
TruncatedLabels

获取或设置一个标志,该标志确定标签是否可以截断。Gets or sets a flag that determines whether the labels can be truncated.

方法

Dispose()

释放由 ChartElement 占用的资源。Releases the resources used by the ChartElement.

(继承自 ChartElement)
Dispose(Boolean)

释放由 LabelStyle 占用的资源。Releases the resources used by the LabelStyle.

Equals(Object)

确定指定的 Object 是否等同于当前的 ChartElementDetermines whether the specified Object is equal to the current ChartElement.

(继承自 ChartElement)
GetHashCode()

返回特定类型的哈希算法。Returns a hash function for a particular type.

(继承自 ChartElement)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前 Object 的字符串。Returns a string that represents the current Object.

(继承自 ChartElement)

适用于