BasePackagingPolicy 類別

定義

定義 XPS 封裝序列化原則的基底類別。Defines the base class for XPS package serialization policies. 這個類別是抽象的。This class is abstract.

public ref class BasePackagingPolicy abstract : IDisposable
public abstract class BasePackagingPolicy : IDisposable
type BasePackagingPolicy = class
    interface IDisposable
Public MustInherit Class BasePackagingPolicy
Implements IDisposable
繼承
BasePackagingPolicy
衍生
實作

備註

封裝原則類別提供的方法,可讓您取得 XpsDocument中不同類型元件的序列化讀取器和寫入器。Packaging policy classes provide methods for acquiring serialization readers and writers for different types of parts in an XpsDocument.

建構函式

BasePackagingPolicy()

在衍生類別中覆寫時,初始化 BasePackagingPolicy 類別的新執行個體。When overridden in a derived class, initializes a new instance of the BasePackagingPolicy class.

屬性

CurrentFixedDocumentUri

在衍生類別中覆寫時,取得正在處理之固定文件的統一資源識別項 (URI)。When overridden in a derived class, gets the uniform resource identifier (URI) of the fixed document that is processing.

CurrentFixedPageUri

在衍生類別中覆寫時,取得正在處理之固定頁面的統一資源識別項 (URI)。When overridden in a derived class, gets the uniform resource identifier (URI) of the fixed page that is processing.

方法

AcquireResourceStreamForXpsColorContext(String)

在衍生類別中覆寫時,取得 XpsColorContext 物件的資源資料流。When overridden in a derived class, acquires a resource stream for an XpsColorContext object.

AcquireResourceStreamForXpsFont()

在衍生類別中覆寫時,取得 XpsFont 物件的資源資料流。When overridden in a derived class, acquires a resource stream for an XpsFont object.

AcquireResourceStreamForXpsFont(String)

在衍生類別中覆寫時,使用指定的資源識別碼取得 XpsFontXpsResourceStreamWhen overridden in a derived class, acquires an XpsResourceStream for an XpsFont with a specified resource ID.

AcquireResourceStreamForXpsImage(String)

在衍生類別中覆寫時,取得 XpsImage 物件的資源資料流。When overridden in a derived class, acquires a resource stream for an XpsImage object.

AcquireResourceStreamForXpsResourceDictionary(String)

在衍生類別中覆寫時,取得 XpsResourceDictionary 物件的資源資料流。When overridden in a derived class, acquires a resource stream for an XpsResourceDictionary object.

AcquireStreamForLinkTargets()

在衍生類別中覆寫時,取得字串的清單,而每個字串都表示一個 LinkTarget 項目。When overridden in a derived class, gets a list of strings, each expressing a LinkTarget element.

AcquireXmlWriterForFixedDocument()

在衍生類別中覆寫時,傳回 XmlWriterFixedDocumentWhen overridden in a derived class, returns an XmlWriter for a FixedDocument.

AcquireXmlWriterForFixedDocumentSequence()

在衍生類別中覆寫時,傳回 XmlWriterFixedDocumentSequenceWhen overridden in a derived class, returns an XmlWriter for a FixedDocumentSequence.

AcquireXmlWriterForFixedPage()

在衍生類別中覆寫時,傳回 XmlWriterFixedPageWhen overridden in a derived class, returns an XmlWriter for a FixedPage.

AcquireXmlWriterForPage()

在衍生類別中覆寫時,傳回目前頁面的 XmlWriterWhen overridden in a derived class, returns an XmlWriter for the current page.

AcquireXmlWriterForResourceDictionary()

在衍生類別中覆寫時,傳回 XmlWriterXpsResourceDictionaryWhen overridden in a derived class, returns an XmlWriter for an XpsResourceDictionary.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
PersistPrintTicket(PrintTicket)

在衍生類別中覆寫時,將 Print Ticket 寫入至套件或套件的某個部分。When overridden in a derived class, writes a print ticket to a package or to a part of the package.

PreCommitCurrentPage()

在衍生類別中覆寫時,先執行任何必要維護工作 (例如,清除資料流),再認可頁面。When overridden in a derived class, performs any required maintenance tasks before the page is committed, for example, flushes streams.

RelateResourceToCurrentPage(Uri, String)

在衍生類別中覆寫時,加入將目前頁面連至某個內部或外部資源的關聯性。When overridden in a derived class, adds a relationship from the current page to some internal or external resource.

RelateRestrictedFontToCurrentDocument(Uri)

在衍生類別中覆寫時,加入將目前頁面連至字型的關聯性。When overridden in a derived class, adds a relationship from the current page to a font.

ReleaseResourceStreamForXpsColorContext()

在衍生類別中覆寫時,釋出目前 XpsResourceStream 物件的 XpsColorContextWhen overridden in a derived class, releases the XpsResourceStream for the current XpsColorContext object.

ReleaseResourceStreamForXpsFont()

在衍生類別中覆寫時,釋出目前 XpsResourceStream 物件的 XpsResourceDictionaryWhen overridden in a derived class, releases the XpsResourceStream for the current XpsResourceDictionary object.

ReleaseResourceStreamForXpsFont(String)

在衍生類別中覆寫時,釋出目前 XpsResourceStream 物件的 XpsResourceDictionaryWhen overridden in a derived class, releases the XpsResourceStream for the current XpsResourceDictionary object.

ReleaseResourceStreamForXpsImage()

在衍生類別中覆寫時,釋出目前 XpsResourceStream 物件的 XpsImageWhen overridden in a derived class, releases the XpsResourceStream for the current XpsImage object.

ReleaseResourceStreamForXpsResourceDictionary()

在衍生類別中覆寫時,釋出目前 XpsResourceStream 物件的 XpsResourceDictionaryWhen overridden in a derived class, releases the XpsResourceStream for the current XpsResourceDictionary object.

ReleaseXmlWriterForFixedDocument()

在衍生類別中覆寫時,釋出目前 XmlWriterFixedDocumentWhen overridden in a derived class, releases the XmlWriter for the current FixedDocument.

ReleaseXmlWriterForFixedDocumentSequence()

在衍生類別中覆寫時,釋出目前 XmlWriterFixedDocumentSequenceWhen overridden in a derived class, releases the XmlWriter for the current FixedDocumentSequence.

ReleaseXmlWriterForFixedPage()

在衍生類別中覆寫時,釋出目前 XmlWriterFixedPageWhen overridden in a derived class, releases the XmlWriter for the current FixedPage.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

IDisposable.Dispose()

這個成員可以支援 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基礎結構,但不建議直接使用於您的程式碼中。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

適用於

另請參閱