Grid Grid Grid Grid Class

Definition

Provides methods and properties that manage the major and minor grids of Axis objects.

public ref class Grid
public class Grid
type Grid = class
Public Class Grid
Inheritance
GridGridGridGrid
Derived

Remarks

This class provides the functionality for the grids on the chart, and is exposed using the MajorGrid and MinorGrid properties of each Axis object.

Major grid lines by default do not have their Interval, IntervalOffset, IntervalType, and IntervalOffsetType properties set. When these properties for major grid lines are not set, the Chart control determines the appropriate values for grid lines automatically.

The axis and its minor grid lines by default have their Interval, IntervalOffset, IntervalType, and IntervalOffsetType properties set to Auto (0). If axis labels or minor grid lines are enabled and these properties are not modified, the Chart control automatically determines how often to draw the minor grid lines.

Axis grids:

  • Can be enabled or disabled.

  • Have a starting point that determines where they are first drawn.

  • Display lines that can be set for style, width and color.

  • Can have either automatic intervals, or intervals that are set manually.

Constructors

Grid() Grid() Grid() Grid()

Initializes a new instance of the Grid class.

Properties

Enabled Enabled Enabled Enabled

Gets or sets a flag that determines whether major or minor grid lines are enabled.

Interval Interval Interval Interval

Gets or sets the interval between major or minor grid lines.

IntervalOffset IntervalOffset IntervalOffset IntervalOffset

Gets or sets the offset of grid lines.

IntervalOffsetType IntervalOffsetType IntervalOffsetType IntervalOffsetType

Gets or sets the interval offset type of major and minor grid lines.

IntervalType IntervalType IntervalType IntervalType

Gets or sets the interval type for major or minor grid lines.

LineColor LineColor LineColor LineColor

Gets or sets the line color of a grid.

LineDashStyle LineDashStyle LineDashStyle LineDashStyle

Gets or sets the line style of a grid.

LineWidth LineWidth LineWidth LineWidth

Gets or sets the line width of major and minor grid lines.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to