TickMark.TickMarkStyle 属性
定义
获取或设置刻度线样式。Gets or sets the tick mark style.
public:
property System::Windows::Forms::DataVisualization::Charting::TickMarkStyle TickMarkStyle { System::Windows::Forms::DataVisualization::Charting::TickMarkStyle get(); void set(System::Windows::Forms::DataVisualization::Charting::TickMarkStyle value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.TickMarkStyle TickMarkStyle { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.TickMarkStyle : System.Windows.Forms.DataVisualization.Charting.TickMarkStyle with get, set
Public Property TickMarkStyle As TickMarkStyle
属性值
一个 TickMarkStyle 枚举值。A TickMarkStyle enumeration value. 默认值是 OutsideArea。The default value is OutsideArea.
- 属性
注解
TickMarkStyle属性确定刻度线的样式。The TickMarkStyle property determines the style of tick marks.
可以在图表区内、图表区域外、跨轴线绘制刻度线,也可以将其禁用。Tick marks can be drawn inside the chart area, outside the chart area, across an axis line, or can be disabled.
若要为三维 (3D) 图显示刻度线,以便只为墙壁的宽度绘制它们,请将 TickMarkStyle 属性设置为 TickMarkStyle.AcrossAxis 。To display tick marks for three-dimensional (3D) charts so that they are just drawn for the width of a wall, set the TickMarkStyle property to TickMarkStyle.AcrossAxis. 然后使用属性指定 (0) 的刻度线大小 Size 。Then specify a tick mark size of zero (0) using the Size property.
如果将 TickMarkStyle 属性设置为 TickMarkStyle.None ,则不会显示刻度线。If the TickMarkStyle property is set to TickMarkStyle.None, tick marks are not displayed. 通过将属性设置为或,还可以打开或关闭刻度线 Enabled true false 。Tick marks can also be toggled on or off by setting the Enabled property to true or false.