VectSharp 2.6.1
A light library for C# vector graphics
All Classes Namespaces Functions Variables Enumerations Properties Events Pages
VectSharp.Plots.Grid Class Reference

A plot element that draws a grid. More...

Inheritance diagram for VectSharp.Plots.Grid:

Public Member Functions

 Grid (IReadOnlyList< double > side1Start, IReadOnlyList< double > side1End, IReadOnlyList< double > side2Start, IReadOnlyList< double > side2End, IContinuousCoordinateSystem coordinateSystem)
 Create a new Grid instance. More...
 
void Plot (Graphics target)
 Draw the plot element on the specified target &#160;Graphics.
Parameters
targetThe Graphics on which to draw.
More...
 
void Plot (Graphics target)
 Draw the plot element on the specified target &#160;Graphics. More...
 

Properties

IReadOnlyList< double > Side1Start [get, set]
 The starting point for the first side of the grid. More...
 
IReadOnlyList< double > Side1End [get, set]
 The ending point for the first side of the grid. More...
 
IReadOnlyList< double > Side2Start [get, set]
 The starting point for the second side of the grid. More...
 
IReadOnlyList< double > Side2End [get, set]
 The ending point for the second side of the grid. More...
 
int IntervalCount = 10 [get, set]
 The number of intervals between grid lines. Note that the number of grid lines will be one greater than this. More...
 
IContinuousCoordinateSystem CoordinateSystem [get, set]
 The coordinate system used to transform the points from data space to plot space. More...
 
PlotElementPresentationAttributes PresentationAttributes = new PlotElementPresentationAttributes() { Stroke = new SolidColourBrush(Colour.FromRgb(220, 220, 220)) } [get, set]
 Presentation attributes determining the appearance of the grid. More...
 
string Tag [get, set]
 A tag to identify the grid in the plot. More...
 
- Properties inherited from VectSharp.Plots.IPlotElement
ICoordinateSystem CoordinateSystem [get]
 The coordinate system used to transform the points from data space to plot space. More...
 

Detailed Description

A plot element that draws a grid.

Definition at line 841 of file Axes.cs.

Constructor & Destructor Documentation

◆ Grid()

VectSharp.Plots.Grid.Grid ( IReadOnlyList< double >  side1Start,
IReadOnlyList< double >  side1End,
IReadOnlyList< double >  side2Start,
IReadOnlyList< double >  side2End,
IContinuousCoordinateSystem  coordinateSystem 
)

Create a new Grid instance.

Parameters
side1StartThe starting point for the first side of the grid.
side1EndThe ending point for the first side of the grid.
side2StartThe starting point for the second side of the grid.
side2EndThe ending point for the second side of the grid.
coordinateSystemThe coordinate system used to transform the points from data space to plot space.

Definition at line 892 of file Axes.cs.

Member Function Documentation

◆ Plot()

void VectSharp.Plots.Grid.Plot ( Graphics  target)

Draw the plot element on the specified target &#160;Graphics.

Parameters
targetThe Graphics on which to draw.

Implements VectSharp.Plots.IPlotElement.

Definition at line 902 of file Axes.cs.

Property Documentation

◆ CoordinateSystem

IContinuousCoordinateSystem VectSharp.Plots.Grid.CoordinateSystem
getset

The coordinate system used to transform the points from data space to plot space.

Implements VectSharp.Plots.IPlotElement.

Definition at line 871 of file Axes.cs.

◆ IntervalCount

int VectSharp.Plots.Grid.IntervalCount = 10
getset

The number of intervals between grid lines. Note that the number of grid lines will be one greater than this.

Definition at line 866 of file Axes.cs.

◆ PresentationAttributes

PlotElementPresentationAttributes VectSharp.Plots.Grid.PresentationAttributes = new PlotElementPresentationAttributes() { Stroke = new SolidColourBrush(Colour.FromRgb(220, 220, 220)) }
getset

Presentation attributes determining the appearance of the grid.

Definition at line 877 of file Axes.cs.

◆ Side1End

IReadOnlyList<double> VectSharp.Plots.Grid.Side1End
getset

The ending point for the first side of the grid.

Definition at line 851 of file Axes.cs.

◆ Side1Start

IReadOnlyList<double> VectSharp.Plots.Grid.Side1Start
getset

The starting point for the first side of the grid.

Definition at line 846 of file Axes.cs.

◆ Side2End

IReadOnlyList<double> VectSharp.Plots.Grid.Side2End
getset

The ending point for the second side of the grid.

Definition at line 861 of file Axes.cs.

◆ Side2Start

IReadOnlyList<double> VectSharp.Plots.Grid.Side2Start
getset

The starting point for the second side of the grid.

Definition at line 856 of file Axes.cs.

◆ Tag

string VectSharp.Plots.Grid.Tag
getset

A tag to identify the grid in the plot.

Definition at line 882 of file Axes.cs.


The documentation for this class was generated from the following file: