Export (0) Print
Expand All

TickMark Class

Represents the major and minor tick marks along an axis.

System.Object
  System.Web.UI.DataVisualization.Charting.Grid
    System.Web.UI.DataVisualization.Charting.TickMark

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

public class TickMark : Grid

The TickMark type exposes the following members.

  NameDescription
Public methodTickMarkInitializes a new instance of the TickMark class.
Top

  NameDescription
Public propertyEnabledGets or sets a flag that determines whether major or minor grid lines are enabled. (Inherited from Grid.)
Public propertyIntervalGets or sets the interval between major or minor grid lines. (Inherited from Grid.)
Public propertyIntervalOffsetGets or sets the offset of grid lines. (Inherited from Grid.)
Public propertyIntervalOffsetTypeGets or sets the interval offset type of major and minor grid lines. (Inherited from Grid.)
Public propertyIntervalTypeGets or sets the interval type for major or minor grid lines. (Inherited from Grid.)
Public propertyLineColorGets or sets the line color of a grid. (Inherited from Grid.)
Public propertyLineDashStyleGets or sets the line style of a grid. (Inherited from Grid.)
Public propertyLineWidthGets or sets the line width of major and minor grid lines. (Inherited from Grid.)
Public propertySizeGets 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 propertyTickMarkStyleGets or sets the tick mark style.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The TickMark class encapsulates the functionality for all chart tick marks.

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

MajorTickMark.Interval is not set (Double.NaN) by default, and the tick marks are drawn according to Interval. 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.

.NET Framework

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft