XpsResourceDictionary XpsResourceDictionary XpsResourceDictionary XpsResourceDictionary Class

定義

表示 XpsResource 項目的字典,在 XpsDocument 的各個頁面都可使用。Represents a dictionary of XpsResource elements that are usable across pages of the XpsDocument.

public ref class XpsResourceDictionary : System::Windows::Xps::Packaging::XpsResource
public class XpsResourceDictionary : System.Windows.Xps.Packaging.XpsResource
type XpsResourceDictionary = class
    inherit XpsResource
Public Class XpsResourceDictionary
Inherits XpsResource
繼承
XpsResourceDictionaryXpsResourceDictionaryXpsResourceDictionaryXpsResourceDictionary

備註

這個類別會有任何公用建構函式。This class has no public constructor. 取得參考XpsResourceDictionary使用IXpsFixedPageWriter.AddResourceDictionary方法。Get a reference to an XpsResourceDictionary by using the IXpsFixedPageWriter.AddResourceDictionary method.

如需詳細資訊ResourceDictionary項目XPSXPS封裝,請參閱中的第 7 章XML 文件規格 (XPS)XML Paper Specification (XPS)規格,您可以在取得XPS: 規格,並授權下載For more information about the ResourceDictionary element of an XPSXPS package, see chapter 7 in the XML 文件規格 (XPS)XML Paper Specification (XPS) specification, which you can obtain at XPS: Specification and License Downloads.

方法

Commit() Commit() Commit() Commit()

認可所有變更,並將資源排清到文件套件。Commits all changes and flushes the resource to the document package.

(Inherited from XpsResource)

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)

GetStream() GetStream() GetStream() GetStream()

在衍生類別中覆寫時,會傳回用於讀取或寫入資源的 I/O 資料流。When overridden in a derived class, returns the I/O stream for reading or writing the resource.

(Inherited from XpsResource)

GetType() GetType() GetType() GetType()

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

(Inherited from Object)

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)

RelativeUri(Uri) RelativeUri(Uri) RelativeUri(Uri) RelativeUri(Uri)

傳回與指定之絕對 URIURI 相關資源的 URIURIReturns the URIURI of the resource that is relative to a specified absolute URIURI.

(Inherited from XpsResource)

ToString() ToString() ToString() ToString()

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

(Inherited from Object)

屬性

Uri Uri Uri Uri

取得或設定組件的 統一資源識別項 (URI)uniform resource identifier (URI)Gets or sets the 統一資源識別項 (URI)uniform resource identifier (URI) of the part.

(Inherited from XpsPartBase)

明確介面實作

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

此成員支援 Windows Presentation Foundation 基礎結構,但並不適合直接透過您的程式碼使用。This member supports the Windows Presentation Foundation infrastructure and is not intended to be used directly from your code.

(Inherited from XpsResource)

適用於