TickMark 类

定义

表示沿轴排列的主要和次要刻度线。Represents the major and minor tick marks along an axis.

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

注解

TickMark类封装了所有图表刻度线的功能。The TickMark class encapsulates the functionality for all chart tick marks.

类作为对象AxisMajorTickMarkMinorTickMark属性公开。 TickMarkThe TickMark class is exposed as the MajorTickMark and MinorTickMark properties of Axis objects.

默认情况下, 主要刻度线显示在主要网格线上, 而次要刻度线则必须显式显示。By default, major tick marks are displayed at the major grid lines, whereas minor tick marks must be explicitly displayed.

默认情况下, 不设置 MajorTickMarkDouble.NaN(), 并且将Interval根据绘制刻度线。MajorTickMark.Interval is not set (Double.NaN) by default, and the tick marks are drawn according to Interval. 默认情况下, MinorTickMark 设置Auto0(), 并且图表控件会自动确定间隔。MinorTickMark.Interval is set to Auto (0) by default, and the Chart control automatically determines the interval.

开发人员可以使用此类来执行以下操作:A developer can use this class to:

  • 启用或禁用刻度线。Enable or disable tick marks.

  • 设置刻度线的颜色、宽度、长度和线条样式。Set the color, width, length and line style of tick marks.

  • 指定一个样式, 该样式确定刻度线是在轴外、轴内还是轴上显示。Specify a style that determines whether tick marks are displayed outside the axis, inside the axis or across the axis.

  • 指定起始点-绘制第一个刻度线的位置, 以及与之相关的刻度线间隔。Specify the starting point - where the first tick mark is drawn - as well as the tick mark interval, which correlates to their frequency.

构造函数

TickMark()

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

属性

Enabled

获取或设置一个标志,该标志确定是否启用主要或次要网格线。Gets or sets a flag that determines whether major or minor grid lines are enabled.

(继承自 Grid)
Interval

获取或设置主要网格线或次要网格线之间的间隔。Gets or sets the interval between major or minor grid lines.

(继承自 Grid)
IntervalOffset

获取或设置网格线的偏移量。Gets or sets the offset of grid lines.

(继承自 Grid)
IntervalOffsetType

获取或设置主要网格线和次要网格线的间隔偏移量类型。Gets or sets the interval offset type of major and minor grid lines.

(继承自 Grid)
IntervalType

获取或设置主要网格线或次要网格线的间隔类型。Gets or sets the interval type for major or minor grid lines.

(继承自 Grid)
LineColor

获取或设置网格线颜色。Gets or sets the line color of a grid.

(继承自 Grid)
LineDashStyle

获取或设置网格的线型。Gets or sets the line style of a grid.

(继承自 Grid)
LineWidth

获取或设置主要网格线和次要网格线的线条宽度。Gets or sets the line width of major and minor grid lines.

(继承自 Grid)
Size

获取或设置刻度线的长度。Gets or sets the length of tick marks. 该长度的度量单位以图表图像的高度或宽度的百分比来表示,高度还是宽度取决于轴。The length is measured in units that represent a percentage of the height or width of the chart image, depending on the axis.

TickMarkStyle

获取或设置刻度线样式。Gets or sets the tick mark style.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于