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
PixelRectdataRect
PixelRectsizes
Dictionary<IPanel, float>offsets
Dictionary<IPanel, float>
Properties
DataRect
Final size of the data area
public PixelRect DataRect { get; }
Property Value
FigureRect
Size of the figure this layout represents
public PixelRect FigureRect { get; }
Property Value
PanelOffsets
Distance (pixels) each panel is to be placed from the edge of the data rectangle
public Dictionary<IPanel, float> PanelOffsets { get; }
Property Value
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
Methods
Equals(Layout)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Layout other)
Parameters
other
LayoutAn object to compare with this object.
Returns
- bool
true if the current object is equal to the
other
parameter; otherwise, false.