PresentationPart.AddFontPart 方法

定义

重载

AddFontPart(FontPartType)

将 FontPart 添加到 PresentationPart

AddFontPart(String)

将 FontPart 添加到 PresentationPart

AddFontPart(FontPartType, String)

将 FontPart 添加到 PresentationPart

AddFontPart(String, String)

将 FontPart 添加到 PresentationPart

AddFontPart(FontPartType)

将 FontPart 添加到 PresentationPart

public DocumentFormat.OpenXml.Packaging.FontPart AddFontPart (DocumentFormat.OpenXml.Packaging.FontPartType partType);
member this.AddFontPart : DocumentFormat.OpenXml.Packaging.FontPartType -> DocumentFormat.OpenXml.Packaging.FontPart
Public Function AddFontPart (partType As FontPartType) As FontPart

参数

partType
FontPartType

FontPart 的部件类型

返回

新添加的部件。

适用于

AddFontPart(String)

将 FontPart 添加到 PresentationPart

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

参数

contentType
String

FontPart 的内容类型

返回

新添加的部件。

适用于

AddFontPart(FontPartType, String)

将 FontPart 添加到 PresentationPart

public DocumentFormat.OpenXml.Packaging.FontPart AddFontPart (DocumentFormat.OpenXml.Packaging.FontPartType partType, string id);
member this.AddFontPart : DocumentFormat.OpenXml.Packaging.FontPartType * string -> DocumentFormat.OpenXml.Packaging.FontPart
Public Function AddFontPart (partType As FontPartType, id As String) As FontPart

参数

partType
FontPartType

FontPart 的部件类型

id
String

关系 ID

返回

新添加的部件。

适用于

AddFontPart(String, String)

将 FontPart 添加到 PresentationPart

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

参数

contentType
String

FontPart 的内容类型

id
String

关系 ID

返回

新添加的部件。

适用于