TickMark.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.

public:
 property float Size { float get(); void set(float value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public float Size { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.Size : single with get, set
Public Property Size As Single

属性值

Single

一个 float 值,该值表示刻度线的大小,即长度。A float value that represents the size, or length, of tick marks. 默认值为 1.0%。The default value is 1.0 percent.

属性

注解

刻度线的大小确定刻度线的长度。The size of a tick mark determines the tick mark's length.

Size 属性以表示图表图像高度或宽度百分比的单位来度量。The Size property is measured in units that represent a percentage of the height or width of the chart image. 如果沿垂直轴显示刻度线,则度量单位为图表图像宽度的百分比。If the tick mark is displayed along a vertical axis, the unit of measure is a percentage of the chart image's width. 如果沿水平轴显示刻度线,则度量单位为图表图像高度的百分比。If the tick mark is displayed along a horizontal axis, the unit of measure is a percentage of the chart image's height.

更改图表图像的宽度将导致为所有图表区调整垂直轴上显示的所有刻度线的大小。A change in the width of the chart image will result in the resizing of all tick marks displayed along vertical axes, for all chart areas. 同样,图表图像高度的变化将导致所有图表区域的水平轴上显示的所有刻度线的大小发生变化。Similarly, a change in the height of the chart image will result in the resizing of all tick marks displayed along horizontal axes, for all chart areas.

若要为三维 (3D) 图显示刻度线,以便只为墙壁的宽度绘制它们,请将 TickMarkStyle 属性设置为, AcrossAxis 并使用属性将刻度线大小指定为零 (0) SizeTo 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 AcrossAxis and specify a tick mark size of zero (0) using the Size property.

适用于