GridFrame

public sealed class GridFrame
Provides a way to draw a framed grid with axis labels and graph elements. The grid will be positioned and scaled to match specific x and y coordinates along all four frame edges.

Constructors

GridFrame

#
Create a new grid frame.
public GridFrame(
RectangleF
frame,
Frame boundary.
grid
Grid properties.
)

Properties

Frame

#
Gets the frame boundary for the grid.
public RectangleF Frame { get; }

Grid

#
Gets the grid style.
public OrthoGrid Grid { get; }

MaximumX

#
Gets or sets the x value along the right edge of the frame.
public double MaximumX { get; set; }

MaximumY

#
Gets or sets the y value along the top edge of the frame.
public double MaximumY { get; set; }

MinimumX

#
Gets or sets the x value along the left edge of the frame.
public double MinimumX { get; set; }

MinimumY

#
Gets or sets the y value along the bottom edge of the frame.
public double MinimumY { get; set; }

Methods

DrawGrid

#
Draw the grid.
public void DrawGrid(
context,
Graphics context.
elements
Grid elements to draw.
)

DrawGrid

#
Draw the grid.
public void DrawGrid(
context
Graphics context.
)

ToFrame

#
Map a 2D coordinate from unit space into frame coordinates.
public PointF ToFrame()