Table of Contents

Struct FractionRect

Namespace
ScottPlot
Assembly
ScottPlot.dll

Describes a rectangular region of a larger rectangle using fractional units

public readonly struct FractionRect
Inherited Members
Extension Methods

Constructors

FractionRect(double, double, double, double)

public FractionRect(double left, double top, double width, double height)

Parameters

left double
top double
width double
height double

Properties

Bottom

public double Bottom { get; }

Property Value

double

Full

public static FractionRect Full { get; }

Property Value

FractionRect

Height

public double Height { get; }

Property Value

double

Left

public double Left { get; }

Property Value

double

Right

public double Right { get; }

Property Value

double

Top

public double Top { get; }

Property Value

double

Width

public double Width { get; }

Property Value

double

Methods

Column(int, int)

public static FractionRect Column(int columnIndex, int columnCount)

Parameters

columnIndex int
columnCount int

Returns

FractionRect

GetPixelRect(PixelRect)

public PixelRect GetPixelRect(PixelRect fullRect)

Parameters

fullRect PixelRect

Returns

PixelRect

GetPixelRect(float, float)

public PixelRect GetPixelRect(float width, float height)

Parameters

width float
height float

Returns

PixelRect

GridCell(int, int, int, int)

public static FractionRect GridCell(int columnIndex, int rowIndex, int columnCount, int rowCount)

Parameters

columnIndex int
rowIndex int
columnCount int
rowCount int

Returns

FractionRect

Row(int, int)

public static FractionRect Row(int rowIndex, int rowCount)

Parameters

rowIndex int
rowCount int

Returns

FractionRect