This documentation is archived and is not being maintained.

TickMark::Size Property

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.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[PersistenceModeAttribute(PersistenceMode::Attribute)]
[BindableAttribute(true)]
public:
property float Size {
	float get ();
	void set (float value);
}

Property Value

Type: System::Single
A float value that represents the size, or length, of tick marks. The default value is 1.0 percent.

The size of a tick mark determines the tick mark's length.

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.

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 AcrossAxis and specify a tick mark size of zero (0) using the Size property.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: