Table of Contents

Class LegendPanel

Namespace
ScottPlot.Panels
Assembly
ScottPlot.dll
public class LegendPanel : PanelBase, IPanel
Inheritance
LegendPanel
Implements
Inherited Members
Extension Methods

Constructors

LegendPanel(Legend)

public LegendPanel(Legend legend)

Parameters

legend Legend

Properties

Alignment

public Alignment Alignment { get; set; }

Property Value

Alignment

Legend

public Legend Legend { get; }

Property Value

Legend

Padding

public PixelPadding Padding { get; set; }

Property Value

PixelPadding

Methods

Measure()

Return the size (in pixels) of the panel in the dimension perpendicular to the edge it lays on

public override float Measure()

Returns

float

Render(RenderPack, float, float)

Draw this panel on a canvas

public override void Render(RenderPack rp, float size, float offset)

Parameters

rp RenderPack
size float

size of this panel (pixel units)

offset float

distance from the edge of this panel to the edge of the data area