Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

XpsPackagingPolicy Class

Defines the writer, resource, print ticket, and package relationship settings that are associated with a specified XpsDocument.

System.Object
  System.Windows.Xps.Serialization.BasePackagingPolicy
    System.Windows.Xps.Serialization.XpsPackagingPolicy

Namespace:  System.Windows.Xps.Serialization
Assembly:  ReachFramework (in ReachFramework.dll)
public class XpsPackagingPolicy : BasePackagingPolicy

The XpsPackagingPolicy type exposes the following members.

  NameDescription
Public methodXpsPackagingPolicy(XpsDocument)Initializes a new instance of the XpsPackagingPolicy class for a specified XpsDocument.
Public methodXpsPackagingPolicy(XpsDocument, PackageInterleavingOrder)Initializes a new instance of the XpsPackagingPolicy class with a specified XpsDocument and specified interleave order.
Top
  NameDescription
Public propertyCurrentFixedDocumentUriGets the uniform resource identifier (URI) of the current fixed document. (Overrides BasePackagingPolicy.CurrentFixedDocumentUri.)
Public propertyCurrentFixedPageUriGets the uniform resource identifier (URI) of the current fixed page. (Overrides BasePackagingPolicy.CurrentFixedPageUri.)
Top
  NameDescription
Public methodAcquireResourceStreamForXpsColorContextAcquires the resource stream for a specified XpsColorContext. (Overrides BasePackagingPolicy.AcquireResourceStreamForXpsColorContext(String).)
Public methodAcquireResourceStreamForXpsFont()Acquires the XpsResourceStream for the current XpsFont. (Overrides BasePackagingPolicy.AcquireResourceStreamForXpsFont().)
Public methodAcquireResourceStreamForXpsFont(String)Acquires the XpsResourceStream for a specified XpsFont. (Overrides BasePackagingPolicy.AcquireResourceStreamForXpsFont(String).)
Public methodAcquireResourceStreamForXpsImageAcquires the resource stream for a specified XpsImage. (Overrides BasePackagingPolicy.AcquireResourceStreamForXpsImage(String).)
Public methodAcquireResourceStreamForXpsResourceDictionaryAcquires the resource stream for a specified XpsResourceDictionary. (Overrides BasePackagingPolicy.AcquireResourceStreamForXpsResourceDictionary(String).)
Public methodAcquireStreamForLinkTargetsReturns a list of LinkTargets for the current page content. (Overrides BasePackagingPolicy.AcquireStreamForLinkTargets().)
Public methodAcquireXmlWriterForFixedDocumentAcquires the XmlWriter for the current FixedDocument. (Overrides BasePackagingPolicy.AcquireXmlWriterForFixedDocument().)
Public methodAcquireXmlWriterForFixedDocumentSequenceAcquires the XmlWriter for the current FixedDocumentSequence. (Overrides BasePackagingPolicy.AcquireXmlWriterForFixedDocumentSequence().)
Public methodAcquireXmlWriterForFixedPageAcquires the XmlWriter for the current FixedPage. (Overrides BasePackagingPolicy.AcquireXmlWriterForFixedPage().)
Public methodAcquireXmlWriterForPageAcquires the XmlWriter for the current page. (Overrides BasePackagingPolicy.AcquireXmlWriterForPage().)
Public methodAcquireXmlWriterForResourceDictionaryAcquires the XmlWriter for the current XpsResourceDictionary. (Overrides BasePackagingPolicy.AcquireXmlWriterForResourceDictionary().)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPersistPrintTicketStores a specified PrintTicket as part of the XpsDocument. (Overrides BasePackagingPolicy.PersistPrintTicket(PrintTicket).)
Public methodPreCommitCurrentPagePrepares to commit the current page to the output store. (Overrides BasePackagingPolicy.PreCommitCurrentPage().)
Public methodRelateResourceToCurrentPageAdds a PackageRelationship with a specified name that associates a specified resource with the current page. (Overrides BasePackagingPolicy.RelateResourceToCurrentPage(Uri, String).)
Public methodRelateRestrictedFontToCurrentDocumentAdds a PackageRelationship that associates a restricted font with the current document. (Overrides BasePackagingPolicy.RelateRestrictedFontToCurrentDocument(Uri).)
Public methodReleaseResourceStreamForXpsColorContextReleases the XpsResourceStream for the current XpsColorContext. (Overrides BasePackagingPolicy.ReleaseResourceStreamForXpsColorContext().)
Public methodReleaseResourceStreamForXpsFont()Releases the XpsResourceStream for the current XpsFont. (Overrides BasePackagingPolicy.ReleaseResourceStreamForXpsFont().)
Public methodReleaseResourceStreamForXpsFont(String)Releases the XpsResourceStream for a specified XpsFont. (Overrides BasePackagingPolicy.ReleaseResourceStreamForXpsFont(String).)
Public methodReleaseResourceStreamForXpsImageReleases the XpsResourceStream for the current XpsImage. (Overrides BasePackagingPolicy.ReleaseResourceStreamForXpsImage().)
Public methodReleaseResourceStreamForXpsResourceDictionaryReleases the XpsResourceStream for the current XpsResourceDictionary. (Overrides BasePackagingPolicy.ReleaseResourceStreamForXpsResourceDictionary().)
Public methodReleaseXmlWriterForFixedDocumentReleases the XmlWriter for the current FixedDocument. (Overrides BasePackagingPolicy.ReleaseXmlWriterForFixedDocument().)
Public methodReleaseXmlWriterForFixedDocumentSequenceReleases the XmlWriter for the current FixedDocumentSequence. (Overrides BasePackagingPolicy.ReleaseXmlWriterForFixedDocumentSequence().)
Public methodReleaseXmlWriterForFixedPageReleases the XmlWriter for the current FixedPage. (Overrides BasePackagingPolicy.ReleaseXmlWriterForFixedPage().)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public eventPackagingProgressEventOccurs when a FixedPage, FixedDocument, or FixedDocumentSequence is added to the XpsDocument.
Top
  NameDescription
Explicit interface implemetationPrivate methodIDisposable.DisposeThis member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. (Inherited from BasePackagingPolicy.)
Top

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.