Table of Contents

Class PathElement

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

Represents a graphic path element to be rendered in a PDF document

[ClassInterface(ClassInterfaceType.AutoDual)]
public class PathElement : PageGraphicElement
Inheritance
PathElement
Inherited Members

Constructors

PathElement(PointF)

Creates a graphic path element

public PathElement(PointF startPoint)

Parameters

startPoint PointF

The path start point

Properties

ClosePath

A flag indicating if the path should be automatically closed. By default this property is false and the path is not closed

public bool ClosePath { get; set; }

Property Value

bool

Methods

AddBezierCurveSegment(PointF, PointF, PointF)

Adds a Bezier curve to path

public void AddBezierCurveSegment(PointF startPoint, PointF directionPoint, PointF endPoint)

Parameters

startPoint PointF

The Bezier curve segment start point

directionPoint PointF

The Bezier curve segment direction point

endPoint PointF

The Bezier curve segment end point

AddLineSegment(PointF)

Adds a line to path

public void AddLineSegment(PointF endPoint)

Parameters

endPoint PointF

The line end point

Move(float, float)

Move the entire path element to given location

public void Move(float x, float y)

Parameters

x float

The new X location

y float

The new Y location