Поделиться через


PresentationDocument.Create Метод

Определение

Перегрузки

Create(Package, PresentationDocumentType)

Создан новый экземпляр класса PresentationDocument из указанного пакета.

Create(Stream, PresentationDocumentType)

Создан новый экземпляр класса PresentationDocument из потока ввода-вывода.

Create(String, PresentationDocumentType)

Создает новый экземпляр класса PresentationDocument из указанного файла.

Create(Package, PresentationDocumentType, Boolean)

Создает новый экземпляр класса PresentationDocument из указанного пакета.

Create(Stream, PresentationDocumentType, Boolean)

Создает новый экземпляр класса PresentationDocument из потока ввода-вывода.

Create(String, PresentationDocumentType, Boolean)

На основе указанного файла создан новый экземпляр класса PresentationDocument.

Create(Package, PresentationDocumentType)

Создан новый экземпляр класса PresentationDocument из указанного пакета.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument Create (System.IO.Packaging.Package package, DocumentFormat.OpenXml.PresentationDocumentType type);
static member Create : System.IO.Packaging.Package * DocumentFormat.OpenXml.PresentationDocumentType -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function Create (package As Package, type As PresentationDocumentType) As PresentationDocument

Параметры

package
Package

Указанный пакет OpenXml.

type
PresentationDocumentType

Тип PresentationDocument.

Возвращаемое значение

Новый экземпляр PresentationDocument.

Исключения

Возникает, если "package" имеет пустую ссылку.

Возникает, если "package" не открыт с доступом на запись.

Применяется к

Create(Stream, PresentationDocumentType)

Создан новый экземпляр класса PresentationDocument из потока ввода-вывода.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument Create (System.IO.Stream stream, DocumentFormat.OpenXml.PresentationDocumentType type);
static member Create : System.IO.Stream * DocumentFormat.OpenXml.PresentationDocumentType -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function Create (stream As Stream, type As PresentationDocumentType) As PresentationDocument

Параметры

stream
Stream

Поток ввода-вывода, в котором создается PresentationDocument.

type
PresentationDocumentType

Тип PresentationDocument.

Возвращаемое значение

Новый экземпляр PresentationDocument.

Исключения

Возникает, если "stream" имеет пустую ссылку.

Возникает, если "поток" не открыт с доступом на запись.

Применяется к

Create(String, PresentationDocumentType)

Создает новый экземпляр класса PresentationDocument из указанного файла.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument Create (string path, DocumentFormat.OpenXml.PresentationDocumentType type);
static member Create : string * DocumentFormat.OpenXml.PresentationDocumentType -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function Create (path As String, type As PresentationDocumentType) As PresentationDocument

Параметры

path
String

Путь и имя файла целевого presentationDocument.

type
PresentationDocumentType

Тип PresentationDocument.

Возвращаемое значение

Новый экземпляр PresentationDocument.

Исключения

Возникает, если "path" имеет пустую ссылку.

Применяется к

Create(Package, PresentationDocumentType, Boolean)

Создает новый экземпляр класса PresentationDocument из указанного пакета.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument Create (System.IO.Packaging.Package package, DocumentFormat.OpenXml.PresentationDocumentType type, bool autoSave);
static member Create : System.IO.Packaging.Package * DocumentFormat.OpenXml.PresentationDocumentType * bool -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function Create (package As Package, type As PresentationDocumentType, autoSave As Boolean) As PresentationDocument

Параметры

package
Package

Указанный пакет OpenXml.

type
PresentationDocumentType

Тип PresentationDocument.

autoSave
Boolean

Следует ли автоматически сохранять созданный документ.

Возвращаемое значение

Новый экземпляр PresentationDocument.

Исключения

Возникает, если "package" имеет пустую ссылку.

Возникает, если "package" не открыт с доступом на запись.

Применяется к

Create(Stream, PresentationDocumentType, Boolean)

Создает новый экземпляр класса PresentationDocument из потока ввода-вывода.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument Create (System.IO.Stream stream, DocumentFormat.OpenXml.PresentationDocumentType type, bool autoSave);
static member Create : System.IO.Stream * DocumentFormat.OpenXml.PresentationDocumentType * bool -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function Create (stream As Stream, type As PresentationDocumentType, autoSave As Boolean) As PresentationDocument

Параметры

stream
Stream

Поток ввода-вывода, в котором создается PresentationDocument.

type
PresentationDocumentType

Тип PresentationDocument.

autoSave
Boolean

Следует ли автоматически сохранять созданный документ.

Возвращаемое значение

Новый экземпляр PresentationDocument.

Исключения

Возникает, если "stream" имеет пустую ссылку.

Возникает, если "поток" не открыт с доступом на запись.

Применяется к

Create(String, PresentationDocumentType, Boolean)

На основе указанного файла создан новый экземпляр класса PresentationDocument.

public static DocumentFormat.OpenXml.Packaging.PresentationDocument Create (string path, DocumentFormat.OpenXml.PresentationDocumentType type, bool autoSave);
static member Create : string * DocumentFormat.OpenXml.PresentationDocumentType * bool -> DocumentFormat.OpenXml.Packaging.PresentationDocument
Public Shared Function Create (path As String, type As PresentationDocumentType, autoSave As Boolean) As PresentationDocument

Параметры

path
String

Путь и имя файла целевого presentationDocument.

type
PresentationDocumentType

Тип PresentationDocument.

autoSave
Boolean

Следует ли автоматически сохранять созданный документ.

Возвращаемое значение

Новый экземпляр PresentationDocument.

Исключения

Возникает, если "path" имеет пустую ссылку.

Применяется к