Freigeben über


MainDocumentPart.AddEmbeddedObjectPart Methode

Definition

Überlädt

AddEmbeddedObjectPart(EmbeddedObjectPartType, String)
AddEmbeddedObjectPart(String, String)
AddEmbeddedObjectPart(EmbeddedObjectPartType)
AddEmbeddedObjectPart(String)

Fügt dem MainDocumentPart ein EmbeddedObjectPart hinzu.

AddEmbeddedObjectPart(EmbeddedObjectPartType, String)

public DocumentFormat.OpenXml.Packaging.EmbeddedObjectPart AddEmbeddedObjectPart (DocumentFormat.OpenXml.Packaging.EmbeddedObjectPartType partType, string id);
member this.AddEmbeddedObjectPart : DocumentFormat.OpenXml.Packaging.EmbeddedObjectPartType * string -> DocumentFormat.OpenXml.Packaging.EmbeddedObjectPart
Public Function AddEmbeddedObjectPart (partType As EmbeddedObjectPartType, id As String) As EmbeddedObjectPart

Parameter

id
String

Gibt zurück

Gilt für:

AddEmbeddedObjectPart(String, String)

public DocumentFormat.OpenXml.Packaging.EmbeddedObjectPart AddEmbeddedObjectPart (string contentType, string id);
member this.AddEmbeddedObjectPart : string * string -> DocumentFormat.OpenXml.Packaging.EmbeddedObjectPart
Public Function AddEmbeddedObjectPart (contentType As String, id As String) As EmbeddedObjectPart

Parameter

contentType
String
id
String

Gibt zurück

Gilt für:

AddEmbeddedObjectPart(EmbeddedObjectPartType)

public DocumentFormat.OpenXml.Packaging.EmbeddedObjectPart AddEmbeddedObjectPart (DocumentFormat.OpenXml.Packaging.EmbeddedObjectPartType partType);
member this.AddEmbeddedObjectPart : DocumentFormat.OpenXml.Packaging.EmbeddedObjectPartType -> DocumentFormat.OpenXml.Packaging.EmbeddedObjectPart
Public Function AddEmbeddedObjectPart (partType As EmbeddedObjectPartType) As EmbeddedObjectPart

Parameter

Gibt zurück

Gilt für:

AddEmbeddedObjectPart(String)

Fügt dem MainDocumentPart ein EmbeddedObjectPart hinzu.

public DocumentFormat.OpenXml.Packaging.EmbeddedObjectPart AddEmbeddedObjectPart (string contentType);
member this.AddEmbeddedObjectPart : string -> DocumentFormat.OpenXml.Packaging.EmbeddedObjectPart
Public Function AddEmbeddedObjectPart (contentType As String) As EmbeddedObjectPart

Parameter

contentType
String

Der Inhaltstyp von EmbeddedObjectPart

Gibt zurück

Der neu hinzugefügte Teil.

Gilt für: