Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XpsDocument Class

 

Provides a Package that holds the content of an XPS document.

Namespace:   System.Windows.Xps.Packaging
Assembly:  ReachFramework (in ReachFramework.dll)

System.Object
  System.Windows.Xps.Packaging.XpsPartBase
    System.Windows.Xps.Packaging.XpsDocument

public class XpsDocument : XpsPartBase, IDisposable

NameDescription
System_CAPS_pubmethodXpsDocument(Package)

Initializes a new instance of the XpsDocument class with access to a specified XML Paper Specification (XPS) Package and default interleaving, resource, and compression options.

System_CAPS_pubmethodXpsDocument(Package, CompressionOption)

Initializes a new instance of the XpsDocument class that is contained in a specified Package with specified default interleaving, resource, and compression options.

System_CAPS_pubmethodXpsDocument(Package, CompressionOption, String)

Initializes a new instance of the XpsDocument class that is contained in a specified Package with the specified default interleaving, resource, and compression options.

System_CAPS_pubmethodXpsDocument(String, FileAccess)

Initializes a new instance of the XpsDocument class that is contained in a specified Package file with default interleaving, resource, and compression options.

System_CAPS_pubmethodXpsDocument(String, FileAccess, CompressionOption)

Initializes a new instance of the XpsDocument class that is contained in a specified Package file with default interleaving, resource, and compression options.

NameDescription
System_CAPS_pubpropertyCoreDocumentProperties

Gets the core PackageProperties of the XPS document.

System_CAPS_pubpropertyFixedDocumentSequenceReader

Gets an IXpsFixedDocumentSequenceReader for reading the document.

System_CAPS_pubpropertyIsReader

Gets a value that indicates whether the package is readable.

System_CAPS_pubpropertyIsSignable

Gets a value that indicates whether the package can be digitally signed.

System_CAPS_pubpropertyIsWriter

Gets a value that indicates whether the package is writable.

System_CAPS_pubpropertySignatures

Gets a collection of XML Paper Specification (XPS) signatures that are associated with the package.

System_CAPS_pubpropertyThumbnail

Gets or sets the XML Paper Specification (XPS) thumbnail image that is associated with the document.

System_CAPS_pubpropertyUri

Gets or sets the uniform resource identifier (URI) of the part.(Inherited from XpsPartBase.)

NameDescription
System_CAPS_pubmethodAddFixedDocumentSequence()

Adds a root FixedDocumentSequence to the package and returns a writer.

System_CAPS_pubmethodAddThumbnail(XpsImageType)

Adds a thumbnail image to the package.

System_CAPS_pubmethodClose()

Closes the XPS document Package.

System_CAPS_pubmethodSystem_CAPS_staticCreateXpsDocumentWriter(XpsDocument)

Creates an XpsDocumentWriter for writing an XpsDocument.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources that are used by the XpsDocument and optionally, releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetFixedDocumentSequence()

Returns the fixed-document sequence at the root of the package.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemoveSignature(XpsDigitalSignature)

Deletes a signature from the package.

System_CAPS_pubmethodSignDigitally(X509Certificate, Boolean, XpsDigSigPartAlteringRestrictions)

Signs a collection of package parts with a specified X.509 certificate.

System_CAPS_pubmethodSignDigitally(X509Certificate, Boolean, XpsDigSigPartAlteringRestrictions, Guid)

Signs a collection of package parts by using a specified X.509 certificate.

System_CAPS_pubmethodSignDigitally(X509Certificate, Boolean, XpsDigSigPartAlteringRestrictions, Guid, Boolean)

Signs a collection of package parts with a specified X.509 certificate.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDisposable.Dispose()

This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Use the type-safe Dispose method instead.

An XpsDocument contains a FixedDocumentSequence that comprises one or more FixedDocument elements.

The XpsDocument constructor is passed a reference to a Package for writing, storing, and reading the content elements of the document.

A new empty XPS Package is created by using the Package constructor.

An existing XPS Package is opened by using the Package.Open method.

A FixedDocumentSequence root is added to an empty XPS Package by calling the AddFixedDocumentSequence method.

PrintTicket elements with printer information and control can also be associated with the FixedDocumentSequence, or on individual FixedDocument and FixedPage elements that are stored in the XpsDocument.

For more information about XPS see the XML Paper Specification (XPS) available for download at http://go.microsoft.com/fwlink/?LinkID=65761.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft