Table of Contents

Class TitlePanel

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

Constructors

TitlePanel()

public TitlePanel()

Fields

VerticalPadding

Extra space to add above the title text so the title does not touch the edge of the image

public float VerticalPadding

Field Value

float

Properties

Edge

Indicates which edge of the data rectangle this panel lays on

public Edge Edge { get; }

Property Value

Edge

FullFigureCenter

Enable this to center the panel using the full width of the figure rather than centering it over the width of the data area.

public bool FullFigureCenter { get; set; }

Property Value

bool

IsVisible

If false, the panel will not be displayed or report any size

public bool IsVisible { get; set; }

Property Value

bool

Label

public LabelStyle Label { get; }

Property Value

LabelStyle

MaximumSize

Disallow the panel to be larger than this

public float MaximumSize { get; set; }

Property Value

float

MinimumSize

Disallow the panel to be smaller than this

public float MinimumSize { get; set; }

Property Value

float

ShowDebugInformation

Enable this to display extra information on the axis to facilitate development

public bool ShowDebugInformation { get; set; }

Property Value

bool

Methods

GetPanelRect(PixelRect, float, float)

Return the rectangle for this panel

public PixelRect GetPanelRect(PixelRect dataRect, float size, float offset)

Parameters

dataRect PixelRect
size float
offset float

Returns

PixelRect

Measure()

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

public float Measure()

Returns

float

Render(RenderPack, float, float)

Draw this panel on a canvas

public 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