Compartilhar via


IXpsOMDocumentStructureResource interface

Provides access to the XML content of the resource stream of the DocumentStructure part. The IXpsOMDocumentStructureResource interface enables a program to read and replace the XML content of the DocumentStructure part.

When to implement

Never. Custom implementation of this interface is not supported.

Members

The IXpsOMDocumentStructureResource interface inherits from IXpsOMResource. IXpsOMDocumentStructureResource also has these types of members:

  • Methods

Methods

The IXpsOMDocumentStructureResource interface has these methods.

Method Description
GetOwner

Gets a pointer to the IXpsOMDocument interface that contains the resource.

GetStream

Gets a new, read-only copy of the stream that is associated with this resource.

SetContent

Sets the read-only stream to be associated with this resource.

 

Remarks

The DocumentStructure part of an XPS document contains the document outline, which, along with the StoryFragments parts, defines the reading order of every element that appears in the fixed pages of the document.

The reading order of an XPS document is organized into semantic blocks called stories. Stories are logical units of the document, in the same way that articles are units in a magazine. Stories are made up of one or more StoryFragments parts; StoryFragments parts contain the XML markup that defines the story's semantic blocks, which describe the structure of the document's content. Examples of a story's semantic blocks include paragraphs and tables.

The XML markup in the DocumentStructure and StoryFragments parts is described in the XML Paper Specification.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

Xpsobjectmodel.h

IDL

XpsObjectModel.idl

See also

IXpsOMResource

IXpsOMObjectFactory::CreateDocumentStructureResource

Interfaces

IXpsOMStoryFragmentsResource

XML Paper Specification