Xps Document Класс
Определение
Предоставляет Package, в котором хранится содержимое документа XPS. Provides a Package that holds the content of an XPS document.
Комментарии
Объект XpsDocument содержит объект FixedDocumentSequence , который состоит из одного или нескольких FixedDocument элементов. An XpsDocument contains a FixedDocumentSequence that comprises one or more FixedDocument elements.
XpsDocumentКонструктору передается ссылка на объект Package для записи, хранения и чтения элементов содержимого документа. The XpsDocument constructor is passed a reference to a Package for writing, storing, and reading the content elements of the document.
Новый пустой XPS Package создается с помощью Package конструктора. A new empty XPS Package is created by using the Package constructor.
Существующий XPS Package открывается с помощью Package.Open метода. An existing XPS Package is opened by using the Package.Open method.
FixedDocumentSequenceКорень добавляется в пустой XPS Package путем вызова AddFixedDocumentSequence метода. A FixedDocumentSequence root is added to an empty XPS Package by calling the AddFixedDocumentSequence method.
PrintTicket элементы со сведениями о принтерах и элементами управления также могут быть связаны с FixedDocumentSequence , или в отдельных FixedDocument FixedPage элементах и, которые хранятся в XpsDocument . 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.
Дополнительные сведения о XPS см. в документации по формату XML (XPS), доступной для загрузки по адресу https://go.microsoft.com/fwlink/?LinkID=65761 . For more information about XPS see the XML Paper Specification (XPS) available for download at https://go.microsoft.com/fwlink/?LinkID=65761.
Конструкторы
Инициализирует новый экземпляр класса XpsDocument с доступом к заданному Package XPS и со стандартными параметрами чередования, ресурсов и сжатия. 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.
Инициализирует новый экземпляр класса XpsDocument, содержащийся в заданном Package заданными параметрами чередования, ресурсов и сжатия по умолчанию. Initializes a new instance of the XpsDocument class that is contained in a specified Package with specified default interleaving, resource, and compression options.
Инициализирует новый экземпляр класса XpsDocument, содержащийся в заданном Package с заданными параметрами чередования, ресурсов и сжатия по умолчанию. Initializes a new instance of the XpsDocument class that is contained in a specified Package with the specified default interleaving, resource, and compression options.
Инициализирует новый экземпляр класса XpsDocument, содержащийся в заданном файле Package заданными параметрами чередования, ресурсов и сжатия по умолчанию. Initializes a new instance of the XpsDocument class that is contained in a specified Package file with default interleaving, resource, and compression options.
Инициализирует новый экземпляр класса XpsDocument, содержащийся в заданном файле Package заданными параметрами чередования, ресурсов и сжатия по умолчанию. Initializes a new instance of the XpsDocument class that is contained in a specified Package file with default interleaving, resource, and compression options.
Свойства
Возвращает ядро PackageProperties документа XPS. Gets the core PackageProperties of the XPS document.
Возвращает IXpsFixedDocumentSequenceReader для чтения документа. Gets an IXpsFixedDocumentSequenceReader for reading the document.
Получает значение, указывающее, доступен ли пакет для чтения. Gets a value that indicates whether the package is readable.
Возвращает значение, указывающее, может ли пакет быть подписан с помощью цифровой подписи. Gets a value that indicates whether the package can be digitally signed.
Возвращает значение, указывающее, доступен ли пакет для записи. Gets a value that indicates whether the package is writable.
Возвращает коллекцию сигнатур XPS, связанных с пакетом. Gets a collection of XML Paper Specification (XPS) signatures that are associated with the package.
Возвращает или задает изображение эскиза, связанное с документом (в формате XPS). Gets or sets the XML Paper Specification (XPS) thumbnail image that is associated with the document.
Получает или задает универсальный код ресурса (URI) части. Gets or sets the uniform resource identifier (URI) of the part.
(Унаследовано от XpsPartBase)
Методы
Добавляет корневой объект FixedDocumentSequence в пакет и возвращает объект записи. Adds a root FixedDocumentSequence to the package and returns a writer.
Добавляет эскиз в пакет. Adds a thumbnail image to the package.
Закрывает документ XPS Package. Closes the XPS document Package.
Освобождает неуправляемые ресурсы, используемые классом XpsDocument, а также при необходимости освобождает управляемые ресурсы. Releases the unmanaged resources that are used by the XpsDocument and optionally, releases the managed resources.
Определяет, равен ли указанный объект текущему объекту. Determines whether the specified object is equal to the current object.
(Унаследовано от Object)
Возвращает последовательность фиксированных документов в корне пакета. Returns the fixed-document sequence at the root of the package.
Служит хэш-функцией по умолчанию. Serves as the default hash function.
(Унаследовано от Object)
Возвращает объект Type для текущего экземпляра. Gets the Type of the current instance.
(Унаследовано от Object)
Создает неполную копию текущего объекта Object. Creates a shallow copy of the current Object.
(Унаследовано от Object)
Удаляет подпись из пакета. Deletes a signature from the package.
Подписывает коллекцию частей пакета с помощью указанного сертификата X.509. Signs a collection of package parts with a specified X.509 certificate.
Подписывает коллекцию частей пакета с помощью указанного сертификата X.509. Signs a collection of package parts by using a specified X.509 certificate.
Подписывает коллекцию частей пакета с помощью указанного сертификата X.509. Signs a collection of package parts with a specified X.509 certificate.
Возвращает строку, представляющую текущий объект. Returns a string that represents the current object.
(Унаследовано от Object)
Явные реализации интерфейса
Этот элемент поддерживает инфраструктуру Windows Presentation Foundation (WPF) и не предназначен для непосредственного использования из кода. This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Использовать вместо этого типобезопасный метод Dispose(Boolean). Use the type-safe Dispose(Boolean) method instead.
System. Windows. Xps. Packaging Пространство имен
Предоставляет типы, позволяющие приложениям считывать и записывать компоненты документа XPS. Provides types that allow applications to read and write the components of an XPS document.
Классы
Предоставляет данные для события PackagingProgressEvent. Provides data for the PackagingProgressEvent event.
Представляет местоположение для отображения цифровой подписи документа XpsDocument. Represents the location to display a digital signature on an XpsDocument.
Представляет контекст цвета для растрового изображения. Represents the color context for a bitmap image.
Представляет цифровую подпись для XpsDocument. Represents a digital signature for an XpsDocument.
Предоставляет Package, в котором хранится содержимое документа XPS. Provides a Package that holds the content of an XPS document.
Предоставляет шрифт в XpsDocument. Represents a font in an XpsDocument.
Предоставляет изображение в XpsDocument. Represents an image in an XpsDocument.
Определяет абстрактный класс, который является родительским для всех классов, которые могут содержаться в пакете XPS. Defines the abstract class that is the parent for all part classes that can be contained in an XPS package.
Определяет базовый класс ресурсов, которые можно добавлять в XpsDocument. Defines the base class for resources that can be added to an XpsDocument.
Представляет словарь элементов XpsResource, которые могут использоваться в составе страниц объекта XpsDocument. Represents a dictionary of XpsResource elements that are usable across pages of the XpsDocument.
Представляет цифровую подпись документа XpsDocument. Represents an XpsDocument digital signature.
Представляет эскиз последовательности документов, одного документа или одной страницы. Represents a thumbnail image of a document sequence, single document, or single page.
Интерфейсы
Определяет метод для добавления части DocumentStructure XPS в пакет XPS. Defines a method for adding the DocumentStructure part of XML Paper Specification (XPS) to an XPS package.
Определяет метод для добавления части StoryFragments разметки в пакет XPS. Defines a method for adding the StoryFragments part of the markup to an XPS package.
Определяет методы для чтения частей FixedDocument, а также для определенных видов записи в документ. Defines methods for reading the parts of a FixedDocument and also for limited types of writing to the document.
Определяет методы для чтения частей FixedDocumentSequence. Defines methods for reading the parts of a FixedDocumentSequence.
Определяет методы и свойства для записи FixedDocumentSequence. Defines methods and properties for writing a FixedDocumentSequence.
Определяет методы и свойства для записи FixedDocument. Defines methods and properties for writing a FixedDocument.
Определяет методы для чтения частей FixedPage. Defines methods for reading the parts of a FixedPage.
Определяет методы для записи частей FixedPage в документ XPS. Defines methods for writing FixedPage parts to an XPS document.
Перечисления
Предоставляет значения, определяющие порядок основных частей пакета в потоке. Provides values that specify the order in which the major parts of a package are streamed.
Идентифицирует типы событий, происходивших в процессе сериализации пакета. Identifies the types of events that occur during the serialization of a package.
Задает части Package XPS, исключенные из диапазона цифровой подписи. Specifies the parts of the XPS Package that are excluded from the range of a digital signature.
Задает графические форматы изображений, которые могут быть включены в XpsDocument. Specifies graphical formats for images that can be included in an XpsDocument.
Указывает, возможно ли совместное использование ресурсов страницами и документами в XpsDocument. Specifies whether resources can be shared between pages and documents in an XpsDocument.
Делегаты
Представляет метод, обрабатывающий событие PackagingProgressEvent. Represents the method that handles the PackagingProgressEvent.
Xps Document Class
Definition
Provides a Package that holds the content of an XPS document.
Remarks
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 https://go.microsoft.com/fwlink/?LinkID=65761.
Constructors
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.
Initializes a new instance of the XpsDocument class that is contained in a specified Package with specified default interleaving, resource, and compression options.
Initializes a new instance of the XpsDocument class that is contained in a specified Package with the specified default interleaving, resource, and compression options.
Initializes a new instance of the XpsDocument class that is contained in a specified Package file with default interleaving, resource, and compression options.
Initializes a new instance of the XpsDocument class that is contained in a specified Package file with default interleaving, resource, and compression options.
Properties
Gets the core PackageProperties of the XPS document.
Gets an IXpsFixedDocumentSequenceReader for reading the document.
Gets a value that indicates whether the package is readable.
Gets a value that indicates whether the package can be digitally signed.
Gets a value that indicates whether the package is writable.
Gets a collection of XML Paper Specification (XPS) signatures that are associated with the package.
Gets or sets the XML Paper Specification (XPS) thumbnail image that is associated with the document.
Gets or sets the uniform resource identifier (URI) of the part.
(Inherited from XpsPartBase)
Methods
Adds a root FixedDocumentSequence to the package and returns a writer.
Adds a thumbnail image to the package.
Closes the XPS document Package.
Releases the unmanaged resources that are used by the XpsDocument and optionally, releases the managed resources.
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Returns the fixed-document sequence at the root of the package.
Serves as the default hash function.
(Inherited from Object)
Gets the Type of the current instance.
(Inherited from Object)
Creates a shallow copy of the current Object.
(Inherited from Object)
Deletes a signature from the package.
Signs a collection of package parts with a specified X.509 certificate.
Signs a collection of package parts by using a specified X.509 certificate.
Signs a collection of package parts with a specified X.509 certificate.
Returns a string that represents the current object.
(Inherited from Object)
Explicit Interface Implementations
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(Boolean) method instead.