Table of Contents

Class PdfSubpath.Line

Namespace
UglyToad.PdfPig.Core
Assembly
UglyToad.PdfPig.Core.dll

Draw a straight line between two points.

public class PdfSubpath.Line : PdfSubpath.IPathCommand
Inheritance
PdfSubpath.Line
Implements
Inherited Members

Constructors

Line(PdfPoint, PdfPoint)

Create a new PdfSubpath.Line.

public Line(PdfPoint from, PdfPoint to)

Parameters

from PdfPoint
to PdfPoint

Properties

From

The start of the line.

public PdfPoint From { get; }

Property Value

PdfPoint

Length

Length of the line.

public double Length { get; }

Property Value

double

To

The end of the line.

public PdfPoint To { get; }

Property Value

PdfPoint

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetBoundingRectangle()

public PdfRectangle? GetBoundingRectangle()

Returns

PdfRectangle?

GetHashCode()

public override int GetHashCode()

Returns

int

WriteSvg(StringBuilder, double)

public void WriteSvg(StringBuilder builder, double height)

Parameters

builder StringBuilder
height double