Table of Contents

Class Line

Namespace
ScottPlot
Assembly
ScottPlot.dll
[Obsolete("use CoordinateLine or PixelLine", true)]
public class Line
Inheritance
Line
Inherited Members
Extension Methods

Constructors

Line(Coordinates, Coordinates)

Create a default line using coordinates

public Line(Coordinates start, Coordinates end)

Parameters

start Coordinates
end Coordinates

Line(Coordinates, Coordinates, LineStyle)

Create a styled line using coordinates, LinePattern, and LineStyle information

public Line(Coordinates start, Coordinates end, LineStyle style)

Parameters

start Coordinates
end Coordinates
style LineStyle

Line(double, double, double, double)

Create a default line using x and y values

public Line(double x1, double y1, double x2, double y2)

Parameters

x1 double
y1 double
x2 double
y2 double

Line(double, double, double, double, LineStyle)

Create a styled line using x and y values, LinePattern, and LineStyle information

public Line(double x1, double y1, double x2, double y2, LineStyle style)

Parameters

x1 double
y1 double
x2 double
y2 double
style LineStyle

Properties

Default

public static Line Default { get; }

Property Value

Line

End

public Coordinates End { get; set; }

Property Value

Coordinates

Start

public Coordinates Start { get; set; }

Property Value

Coordinates

Style

public LineStyle Style { get; set; }

Property Value

LineStyle

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.