XpsDocument XpsDocument XpsDocument XpsDocument Constructors

정의

오버로드

XpsDocument(Package) XpsDocument(Package) XpsDocument(Package)

지정된 XPS(XML Paper Specification) Package 및 기본 인터리빙, 리소스, 압축 옵션을 사용하여 XpsDocument 클래스의 새 인스턴스를 초기화합니다.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, CompressionOption) XpsDocument(Package, CompressionOption) XpsDocument(Package, CompressionOption)

지정된 기본 인터리빙, 리소스 및 압축 옵션을 사용하여 지정된 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(String, FileAccess) XpsDocument(String, FileAccess) XpsDocument(String, FileAccess) XpsDocument(String, FileAccess)

기본 인터리빙, 리소스 및 압축 옵션을 사용하여 지정된 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, CompressionOption, String) XpsDocument(Package, CompressionOption, String) XpsDocument(Package, CompressionOption, String)

지정된 기본 인터리빙, 리소스 및 압축 옵션을 사용하여 지정된 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(String, FileAccess, CompressionOption) XpsDocument(String, FileAccess, CompressionOption) XpsDocument(String, FileAccess, CompressionOption)

기본 인터리빙, 리소스 및 압축 옵션을 사용하여 지정된 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합니다.The following example shows how to create and close an XpsDocument.

// Create an XpsDocument package (without PrintTicket).
{
   Package^ package = Package::Open(packageName);
   try
   {
      XpsDocument^ xpsDocument = gcnew XpsDocument(package);

      // Add the package content (false=without PrintTicket).
      AddPackageContent(xpsDocument, false);

      // Close the package.
      xpsDocument->Close();
   } finally
   {
      delete package;
   }
// Create an XpsDocument package (without PrintTicket).
using (Package package = Package.Open(packageName))
{
    XpsDocument xpsDocument = new XpsDocument(package);

    // Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, false);

    // Close the package.
    xpsDocument.Close();
}
' Create an XpsDocument package (without PrintTicket).
Using package1 As Package = Package.Open(packageName)
    Dim xpsDocument As New XpsDocument(package1)

    ' Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, False)

    ' Close the package.
    xpsDocument.Close()
End Using

다음 예제에서는 방법도를 만들고 닫습니다는 XpsDocument합니다.The following example also shows how to create and close an XpsDocument.

// Save as a WordXML document.
WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd);
return true;

XpsDocument(Package) XpsDocument(Package) XpsDocument(Package)

지정된 XPS(XML Paper Specification) Package 및 기본 인터리빙, 리소스, 압축 옵션을 사용하여 XpsDocument 클래스의 새 인스턴스를 초기화합니다.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.

public:
 XpsDocument(System::IO::Packaging::Package ^ package);
public XpsDocument (System.IO.Packaging.Package package);
new System.Windows.Xps.Packaging.XpsDocument : System.IO.Packaging.Package -> System.Windows.Xps.Packaging.XpsDocument

매개 변수

package
Package Package Package Package

XpsDocument의 대상 XPS 패키지입니다.The target XPS package for the XpsDocument.

예제

다음 예제에서는 만들고 닫는 방법은 XpsDocument합니다.The following example shows how to create and close an XpsDocument.

// Create an XpsDocument package (without PrintTicket).
{
   Package^ package = Package::Open(packageName);
   try
   {
      XpsDocument^ xpsDocument = gcnew XpsDocument(package);

      // Add the package content (false=without PrintTicket).
      AddPackageContent(xpsDocument, false);

      // Close the package.
      xpsDocument->Close();
   } finally
   {
      delete package;
   }
// Create an XpsDocument package (without PrintTicket).
using (Package package = Package.Open(packageName))
{
    XpsDocument xpsDocument = new XpsDocument(package);

    // Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, false);

    // Close the package.
    xpsDocument.Close();
}
' Create an XpsDocument package (without PrintTicket).
Using package1 As Package = Package.Open(packageName)
    Dim xpsDocument As New XpsDocument(package1)

    ' Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, False)

    ' Close the package.
    xpsDocument.Close()
End Using

다음 예제에서는 방법도를 만들고 닫습니다는 XpsDocument합니다.The following example also shows how to create and close an XpsDocument.

// Save as a WordXML document.
WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd);
return true;

XpsDocument(Package, CompressionOption) XpsDocument(Package, CompressionOption) XpsDocument(Package, CompressionOption)

지정된 기본 인터리빙, 리소스 및 압축 옵션을 사용하여 지정된 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.

public:
 XpsDocument(System::IO::Packaging::Package ^ package, System::IO::Packaging::CompressionOption compressionOption);
public XpsDocument (System.IO.Packaging.Package package, System.IO.Packaging.CompressionOption compressionOption);
new System.Windows.Xps.Packaging.XpsDocument : System.IO.Packaging.Package * System.IO.Packaging.CompressionOption -> System.Windows.Xps.Packaging.XpsDocument

매개 변수

package
Package Package Package Package

XpsDocument의 대상 패키지입니다.The target package for the XpsDocument.

compressionOption
CompressionOption CompressionOption CompressionOption CompressionOption

패키지 압축 옵션입니다.The package compression option.

예제

다음 예제에서는 만들고 닫는 방법은 XpsDocument합니다.The following example shows how to create and close an XpsDocument.

// Create an XpsDocument package (without PrintTicket).
{
   Package^ package = Package::Open(packageName);
   try
   {
      XpsDocument^ xpsDocument = gcnew XpsDocument(package);

      // Add the package content (false=without PrintTicket).
      AddPackageContent(xpsDocument, false);

      // Close the package.
      xpsDocument->Close();
   } finally
   {
      delete package;
   }
// Create an XpsDocument package (without PrintTicket).
using (Package package = Package.Open(packageName))
{
    XpsDocument xpsDocument = new XpsDocument(package);

    // Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, false);

    // Close the package.
    xpsDocument.Close();
}
' Create an XpsDocument package (without PrintTicket).
Using package1 As Package = Package.Open(packageName)
    Dim xpsDocument As New XpsDocument(package1)

    ' Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, False)

    ' Close the package.
    xpsDocument.Close()
End Using

다음 예제에서는 방법도를 만들고 닫습니다는 XpsDocument합니다.The following example also shows how to create and close an XpsDocument.

// Save as a WordXML document.
WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd);
return true;

XpsDocument(String, FileAccess) XpsDocument(String, FileAccess) XpsDocument(String, FileAccess) XpsDocument(String, FileAccess)

기본 인터리빙, 리소스 및 압축 옵션을 사용하여 지정된 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.

public:
 XpsDocument(System::String ^ path, System::IO::FileAccess packageAccess);
public XpsDocument (string path, System.IO.FileAccess packageAccess);
new System.Windows.Xps.Packaging.XpsDocument : string * System.IO.FileAccess -> System.Windows.Xps.Packaging.XpsDocument
Public Sub New (path As String, packageAccess As FileAccess)

매개 변수

path
String String String String

Package에 대한 대상 XpsDocument의 경로 및 파일 이름입니다.The path and file name of the target Package for the XpsDocument.

packageAccess
FileAccess FileAccess FileAccess FileAccess

XpsDocument를 열 때 사용할 파일 I/O 모드입니다.The file I/O mode in which to open the XpsDocument.

예제

다음 예제에서는 만들고 닫는 방법은 XpsDocument합니다.The following example shows how to create and close an XpsDocument.

// Create an XpsDocument package (without PrintTicket).
{
   Package^ package = Package::Open(packageName);
   try
   {
      XpsDocument^ xpsDocument = gcnew XpsDocument(package);

      // Add the package content (false=without PrintTicket).
      AddPackageContent(xpsDocument, false);

      // Close the package.
      xpsDocument->Close();
   } finally
   {
      delete package;
   }
// Create an XpsDocument package (without PrintTicket).
using (Package package = Package.Open(packageName))
{
    XpsDocument xpsDocument = new XpsDocument(package);

    // Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, false);

    // Close the package.
    xpsDocument.Close();
}
' Create an XpsDocument package (without PrintTicket).
Using package1 As Package = Package.Open(packageName)
    Dim xpsDocument As New XpsDocument(package1)

    ' Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, False)

    ' Close the package.
    xpsDocument.Close()
End Using

다음 예제에서는 방법도를 만들고 닫습니다는 XpsDocument합니다.The following example also shows how to create and close an XpsDocument.

// Save as a WordXML document.
WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd);
return true;

XpsDocument(Package, CompressionOption, String) XpsDocument(Package, CompressionOption, String) XpsDocument(Package, CompressionOption, String)

지정된 기본 인터리빙, 리소스 및 압축 옵션을 사용하여 지정된 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.

public:
 XpsDocument(System::IO::Packaging::Package ^ package, System::IO::Packaging::CompressionOption compressionOption, System::String ^ path);
public XpsDocument (System.IO.Packaging.Package package, System.IO.Packaging.CompressionOption compressionOption, string path);
new System.Windows.Xps.Packaging.XpsDocument : System.IO.Packaging.Package * System.IO.Packaging.CompressionOption * string -> System.Windows.Xps.Packaging.XpsDocument

매개 변수

package
Package Package Package Package

XpsDocument의 대상 패키지입니다.The target package for the XpsDocument.

compressionOption
CompressionOption CompressionOption CompressionOption CompressionOption

패키지 압축 옵션입니다.The package compression option.

path
String String String String

문자열로 나타낸, 문서의 URI(Uniform Resource Identifier)uniform resource identifier (URI)입니다.The URI(Uniform Resource Identifier)uniform resource identifier (URI) for the document as a string.

예제

다음 예제에서는 만들고 닫는 방법은 XpsDocument합니다.The following example shows how to create and close an XpsDocument.

// Create an XpsDocument package (without PrintTicket).
{
   Package^ package = Package::Open(packageName);
   try
   {
      XpsDocument^ xpsDocument = gcnew XpsDocument(package);

      // Add the package content (false=without PrintTicket).
      AddPackageContent(xpsDocument, false);

      // Close the package.
      xpsDocument->Close();
   } finally
   {
      delete package;
   }
// Create an XpsDocument package (without PrintTicket).
using (Package package = Package.Open(packageName))
{
    XpsDocument xpsDocument = new XpsDocument(package);

    // Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, false);

    // Close the package.
    xpsDocument.Close();
}
' Create an XpsDocument package (without PrintTicket).
Using package1 As Package = Package.Open(packageName)
    Dim xpsDocument As New XpsDocument(package1)

    ' Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, False)

    ' Close the package.
    xpsDocument.Close()
End Using

다음 예제에서는 방법도를 만들고 닫습니다는 XpsDocument합니다.The following example also shows how to create and close an XpsDocument.

// Save as a WordXML document.
WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd);
return true;

XpsDocument(String, FileAccess, CompressionOption) XpsDocument(String, FileAccess, CompressionOption) XpsDocument(String, FileAccess, CompressionOption)

기본 인터리빙, 리소스 및 압축 옵션을 사용하여 지정된 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.

public:
 XpsDocument(System::String ^ path, System::IO::FileAccess packageAccess, System::IO::Packaging::CompressionOption compressionOption);
public XpsDocument (string path, System.IO.FileAccess packageAccess, System.IO.Packaging.CompressionOption compressionOption);
new System.Windows.Xps.Packaging.XpsDocument : string * System.IO.FileAccess * System.IO.Packaging.CompressionOption -> System.Windows.Xps.Packaging.XpsDocument

매개 변수

path
String String String String

Package에 대한 대상 XpsDocument의 경로 및 파일 이름입니다.The path and file name of the target Package for the XpsDocument.

packageAccess
FileAccess FileAccess FileAccess FileAccess

XpsDocument를 열 때 사용할 파일 I/O 모드입니다.The file I/O mode in which to open the XpsDocument.

compressionOption
CompressionOption CompressionOption CompressionOption CompressionOption

패키지 압축 옵션입니다.The package compression option.

예제

다음 예제에서는 만들고 닫는 방법은 XpsDocument합니다.The following example shows how to create and close an XpsDocument.

// Create an XpsDocument package (without PrintTicket).
{
   Package^ package = Package::Open(packageName);
   try
   {
      XpsDocument^ xpsDocument = gcnew XpsDocument(package);

      // Add the package content (false=without PrintTicket).
      AddPackageContent(xpsDocument, false);

      // Close the package.
      xpsDocument->Close();
   } finally
   {
      delete package;
   }
// Create an XpsDocument package (without PrintTicket).
using (Package package = Package.Open(packageName))
{
    XpsDocument xpsDocument = new XpsDocument(package);

    // Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, false);

    // Close the package.
    xpsDocument.Close();
}
' Create an XpsDocument package (without PrintTicket).
Using package1 As Package = Package.Open(packageName)
    Dim xpsDocument As New XpsDocument(package1)

    ' Add the package content (false=without PrintTicket).
    AddPackageContent(xpsDocument, False)

    ' Close the package.
    xpsDocument.Close()
End Using

다음 예제에서는 방법도를 만들고 닫습니다는 XpsDocument합니다.The following example also shows how to create and close an XpsDocument.

// Save as a WordXML document.
WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd);
return true;

적용 대상