Table of Contents

Class Line

Namespace
iText.Kernel.Geom
Assembly
itext.kernel.dll

Represents a line.

public class Line : IShape
Inheritance
Line
Implements
Inherited Members

Constructors

Line()

Constructs a new zero-length line starting at zero.

public Line()

Line(float, float, float, float)

Constructs a new line based on the given coordinates.

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

Parameters

x1 float

x-coordinate of start point of this Line

y1 float

y-coordinate of start point of this Line

x2 float

x-coordinate of end point of this Line

y2 float

y-coordinate of end point of this Line

Line(Point, Point)

Constructs a new line based on the given coordinates.

public Line(Point p1, Point p2)

Parameters

p1 Point

start point of this Line

p2 Point

end point of this Line

Methods

GetBasePoints()

public virtual IList<Point> GetBasePoints()

Returns

IList<Point>