Table of Contents

Class PageGraphicElement

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

This abstract class is the base class for all graphic elements that can be added to a PDF document

[ClassInterface(ClassInterfaceType.AutoDual)]
public abstract class PageGraphicElement : PageElement
Inheritance
PageGraphicElement
Derived
Inherited Members

Properties

BackColor

Gets or sets element background color.

public PdfColor BackColor { get; set; }

Property Value

PdfColor

Blending

Gets or sets blending mode for transparent rendering mode of the element.

public Blending Blending { get; set; }

Property Value

Blending

ClipRectangle

The clip rectangle applied when the element is rendered in PDF

public RectangleF ClipRectangle { get; set; }

Property Value

RectangleF

ForeColor

Gets or sets the element foreground color.

public PdfColor ForeColor { get; set; }

Property Value

PdfColor

Gradient

The gradient used to fill a shape.

public GradientColor Gradient { get; set; }

Property Value

GradientColor

LineStyle

Gets or sets the line style for elements rendering lines.

public LineStyle LineStyle { get; set; }

Property Value

LineStyle

Opacity

Gets or sets element opacity. The opacity is expressed as a value between 0 and 100. 0 means completely transparent and 100 completely opaque. The default value of this property is 100.

public int Opacity { get; set; }

Property Value

int

Rotated

A flag to indicate if this element was rotated.

public bool Rotated { get; }

Property Value

bool

Scaled

A flag to indicate if this element was scaled.

public bool Scaled { get; }

Property Value

bool

Skewed

A flag to indicate if this element was skewed.

public bool Skewed { get; }

Property Value

bool

Translated

A flag to indicate if this element was translated.

public bool Translated { get; }

Property Value

bool

Methods

Rotate(float)

Rotates the coordinate system axes clockwise by the specified angle before rendering the element. The coordinates of the element are relative to the rotated coordinates system.

public void Rotate(float rotateAngle)

Parameters

rotateAngle float

The angle of the rotation in degrees.

Remarks

For text rotation use the TextAngle property of the TextElement.

Scale(float, float)

Scales the coordinates so that 1 unit in the horizontal and vertical dimensions of the new coordinate system is the same size as sx and sy units, respectively, in the previous coordinate system.

public void Scale(float sx, float sy)

Parameters

sx float

The value by which to scale coordinate system in the x-axis direction.

sy float

The value by which to scale coordinate system in the y-axis direction.

Skew(float, float)

Skews the x axis by an skewXAngle and the y axis by an skewYAngle before rendering the element.

public void Skew(float skewXAngle, float skewYAngle)

Parameters

skewXAngle float

Skew x angle.

skewYAngle float

Skew y angle.

Translate(float, float)

Translates the coordinate system before rendering the element.
The coordinates of the element are relative to the translated coordinate system.

public void Translate(float tx, float ty)

Parameters

tx float

The distance to translate the origin of the coordinate system in the horizontal direction

ty float

The distance to translate the origin of the coordinate system in the vertical direction