Table of Contents

Class XForm

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Represents a graphical object that can be used to render retained graphics on it. In GDI+ it is represented by a Metafile, in WPF by a DrawingVisual, and in PDF by a Form XObjects.

public class XForm : XImage
Inheritance
object
XForm
Derived
Inherited Members

Constructors

XForm()

Initializes a new instance of the XForm class.

XForm(PdfFormXObject, PdfRectangle)

Initializes a new instance of the XForm class that represents an existing PdfFormXObject.

XForm(PdfDocument, XRect)

Initializes a new instance of the XForm class that represents a page of a PDF document.

XForm(PdfDocument, XSize)

Initializes a new instance of the XForm class that represents a page of a PDF document.

XForm(PdfDocument, XUnit, XUnit)

Initializes a new instance of the XForm class that represents a page of a PDF document.

Properties

BoundingBox

Gets or sets the bounding box.

Height

Get the width of the page identified by the property PageNumber.

HorizontalResolution

Gets 72, the horizontal resolution by design of a form object.

PixelHeight

Get the height of the page identified by the property PageNumber.

PixelWidth

Get the width of the page identified by the property PageNumber.

PointHeight

Get the height in point of this image.

PointWidth

Get the width in point of this image.

Size

Get the size of the page identified by the property PageNumber.

Transform

Gets or sets the transformation matrix.

VerticalResolution

Gets 72 always, the vertical resolution by design of a form object.

ViewBox

Gets the view box of the form.

Width

Get the width of the page identified by the property PageNumber.

Methods

DrawingFinished()

This function should be called when drawing the content of this form is finished. The XGraphics object used for drawing the content is disposed by this function and cannot be used for any further drawing operations. PDFsharp automatically calls this function when this form was used the first time in a DrawImage function.