Table of Contents

Class LegendItem

Namespace
ScottPlot
Assembly
ScottPlot.dll
public class LegendItem : LabelStyleProperties, IHasMarker, IHasLine, IHasFill, IHasArrow
Inheritance
LegendItem
Implements
Inherited Members
Extension Methods

Properties

ArrowAnchor

public ArrowAnchor ArrowAnchor { get; set; }

Property Value

ArrowAnchor

ArrowFillColor

public Color ArrowFillColor { get; set; }

Property Value

Color

ArrowLineColor

public Color ArrowLineColor { get; set; }

Property Value

Color

ArrowLineWidth

public float ArrowLineWidth { get; set; }

Property Value

float

ArrowMaximumLength

public float ArrowMaximumLength { get; set; }

Property Value

float

ArrowMinimumLength

public float ArrowMinimumLength { get; set; }

Property Value

float

ArrowOffset

public float ArrowOffset { get; set; }

Property Value

float

ArrowStyle

public ArrowStyle ArrowStyle { get; set; }

Property Value

ArrowStyle

ArrowWidth

public float ArrowWidth { get; set; }

Property Value

float

ArrowheadAxisLength

public float ArrowheadAxisLength { get; set; }

Property Value

float

ArrowheadLength

public float ArrowheadLength { get; set; }

Property Value

float

ArrowheadWidth

public float ArrowheadWidth { get; set; }

Property Value

float

FillColor

public Color FillColor { get; set; }

Property Value

Color

FillHatch

public IHatch? FillHatch { get; set; }

Property Value

IHatch

FillHatchColor

public Color FillHatchColor { get; set; }

Property Value

Color

FillStyle

public FillStyle FillStyle { get; set; }

Property Value

FillStyle

IsVisible

public bool IsVisible { get; set; }

Property Value

bool

Label

[Obsolete("use LabelText")]
public string Label { get; set; }

Property Value

string

LabelStyle

public override LabelStyle LabelStyle { get; set; }

Property Value

LabelStyle

Line

[Obsolete("use LineStyle")]
public LineStyle Line { get; set; }

Property Value

LineStyle

LineColor

public Color LineColor { get; set; }

Property Value

Color

LinePattern

public LinePattern LinePattern { get; set; }

Property Value

LinePattern

LineStyle

public LineStyle LineStyle { get; set; }

Property Value

LineStyle

LineWidth

public float LineWidth { get; set; }

Property Value

float

Marker

[Obsolete("use MarkerStyle")]
public MarkerStyle Marker { get; set; }

Property Value

MarkerStyle

MarkerColor

public Color MarkerColor { get; set; }

Property Value

Color

MarkerFillColor

public Color MarkerFillColor { get; set; }

Property Value

Color

MarkerLineColor

public Color MarkerLineColor { get; set; }

Property Value

Color

MarkerLineWidth

public float MarkerLineWidth { get; set; }

Property Value

float

MarkerShape

public MarkerShape MarkerShape { get; set; }

Property Value

MarkerShape

MarkerSize

public float MarkerSize { get; set; }

Property Value

float

MarkerStyle

public MarkerStyle MarkerStyle { get; set; }

Property Value

MarkerStyle

None

public static IEnumerable<LegendItem> None { get; }

Property Value

IEnumerable<LegendItem>

OutlineColor

public Color OutlineColor { get; set; }

Property Value

Color

OutlinePattern

public LinePattern OutlinePattern { get; set; }

Property Value

LinePattern

OutlineStyle

public LineStyle OutlineStyle { get; set; }

Property Value

LineStyle

OutlineWidth

public float OutlineWidth { get; set; }

Property Value

float

Plottable

Plottable this legend item is associated with

public IPlottable? Plottable { get; set; }

Property Value

IPlottable

Methods

Single(IPlottable, string, FillStyle)

public static IEnumerable<LegendItem> Single(IPlottable plottable, string label, FillStyle fillStyle)

Parameters

plottable IPlottable
label string
fillStyle FillStyle

Returns

IEnumerable<LegendItem>

Single(IPlottable, string, FillStyle, LineStyle)

public static IEnumerable<LegendItem> Single(IPlottable plottable, string label, FillStyle fillStyle, LineStyle lineStyle)

Parameters

plottable IPlottable
label string
fillStyle FillStyle
lineStyle LineStyle

Returns

IEnumerable<LegendItem>

Single(IPlottable, string, LineStyle)

public static IEnumerable<LegendItem> Single(IPlottable plottable, string label, LineStyle lineStyle)

Parameters

plottable IPlottable
label string
lineStyle LineStyle

Returns

IEnumerable<LegendItem>

Single(IPlottable, string, LineStyle, MarkerStyle)

public static IEnumerable<LegendItem> Single(IPlottable plottable, string label, LineStyle lineStyle, MarkerStyle markerStyle)

Parameters

plottable IPlottable
label string
lineStyle LineStyle
markerStyle MarkerStyle

Returns

IEnumerable<LegendItem>

Single(IPlottable, string, MarkerStyle)

public static IEnumerable<LegendItem> Single(IPlottable plottable, string label, MarkerStyle markerStyle)

Parameters

plottable IPlottable
label string
markerStyle MarkerStyle

Returns

IEnumerable<LegendItem>

Single(IPlottable, string, MarkerStyle, LineStyle)

public static IEnumerable<LegendItem> Single(IPlottable plottable, string label, MarkerStyle markerStyle, LineStyle lineStyle)

Parameters

plottable IPlottable
label string
markerStyle MarkerStyle
lineStyle LineStyle

Returns

IEnumerable<LegendItem>

Single(LegendItem)

public static IEnumerable<LegendItem> Single(LegendItem item)

Parameters

item LegendItem

Returns

IEnumerable<LegendItem>