Table of Contents

Struct Layout

Namespace
ScottPlot
Assembly
ScottPlot.dll
public readonly struct Layout : IEquatable<Layout>
Implements
Inherited Members
Extension Methods

Constructors

Layout(PixelRect, PixelRect, Dictionary<IPanel, float>, Dictionary<IPanel, float>)

public Layout(PixelRect figureRect, PixelRect dataRect, Dictionary<IPanel, float> sizes, Dictionary<IPanel, float> offsets)

Parameters

figureRect PixelRect
dataRect PixelRect
sizes Dictionary<IPanel, float>
offsets Dictionary<IPanel, float>

Properties

DataRect

Final size of the data area

public PixelRect DataRect { get; }

Property Value

PixelRect

FigureRect

Size of the figure this layout represents

public PixelRect FigureRect { get; }

Property Value

PixelRect

PanelOffsets

Distance (pixels) each panel is to be placed from the edge of the data rectangle

public Dictionary<IPanel, float> PanelOffsets { get; }

Property Value

Dictionary<IPanel, float>

PanelSizes

Size (pixels) of each panel in the dimension perpendicular to the data edge it is placed on

public Dictionary<IPanel, float> PanelSizes { get; }

Property Value

Dictionary<IPanel, float>

Methods

Equals(Layout)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Layout other)

Parameters

other Layout

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.