Determines if a grid line and/or tick mark is displayed for a custom label.
Defines custom tick marks and/or grid lines to be drawn in the center of the label.
Visual Basic (Declaration) | |
---|---|
Public Property GridTick As GridTick |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public GridTick GridTick {get; set;} |
Return Value
A GridTick enumeration value that determines whether a grid line and/or tick mark is displayed for a custom axis label. Defaults to none (GridTick.None).
This property can be set so that a grid line and/or tick mark is displayed for a custom label.
A grid line and tick mark for a custom label are drawn in the middle of the custom label range that is defined by the To and From properties, and the position of the grid line/tick mark is not affected by the interval-related properties of an Axis object's grid and tick mark object properties (e.g. the Axis.MajorTickMark.Interval property value doesn't effect the position of a custom label's tick mark along that axis).
To set the GridTick property loop through all custom axis labels in the CustomLabels collection property, and set GridTick for the desired custom labels.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family