[]
        
(Showing Draft Content)

C1.C1Preview.Export.Xps.XpsC1Doc

XpsC1Doc Class

Provides XPS representation of a C1PrintDocument. The generated XPS can be stored either in a disk file or in memory, depending on the constructor used to create the instance of this type.

Inheritance
XpsC1Doc
Implements
Namespace: C1.C1Preview.Export.Xps
Assembly: C1.PrintDocument.8.dll
Syntax
public class XpsC1Doc : IDisposable

Constructors

Name Description
XpsC1Doc(C1PrintDocument)

Creates an instance of XpsC1Doc that holds the XPS document in memory.

XpsC1Doc(C1PrintDocument, string)

Creates an instance of XpsC1Doc that creates the XPS document in a disk file.

Properties

Name Description
Document

Gets the source C1PrintDocument.

LongOperationEventHandler

Gets or sets the delegate that will be called periodically while the document generates.

LongOperationEventSender

Gets or sets the sender argument for the long operation event. If not set, the current object is used.

XpsDocument

Gets the XpsDocument representing the source document. Note that the document is committed when this property is first accessed, and cannot be changed afterwards.

XpsDpi

Gets the resolution used for pages' content. In the current version, this is determined by the CreationDpi of the source C1PrintDocument.

Methods

Name Description
Commit()

Commits the document.

Dispose()

Clean up any resources being used.

Dispose(bool)

Clean up any resources being used.

RuToXpsPixel(double)

Converts an absolute value in document's ResolvedUnitType units to a value in XPS pixels.

UnitToXpsPixel(Unit)

Converts a Unit value to XPS pixels using the page resolution (XpsDpi).