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

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

Properties

Frame

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

Grid

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

MaximumX

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

MaximumY

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

MinimumX

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

MinimumY

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

Methods

DrawGrid

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

DrawGrid

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

ToFrame

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