FontTablePart.AddFontPart Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddFontPart(FontPartType) |
Adds a FontPart to the FontTablePart |
AddFontPart(String) |
Adds a FontPart to the FontTablePart |
AddFontPart(FontPartType, String) |
Adds a FontPart to the FontTablePart |
AddFontPart(String, String) |
Adds a FontPart to the FontTablePart |
AddFontPart(FontPartType)
Adds a FontPart to the FontTablePart
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
Parameters
- partType
- FontPartType
The part type of the FontPart
Returns
The newly added part.
Applies to
AddFontPart(String)
Adds a FontPart to the FontTablePart
public DocumentFormat.OpenXml.Packaging.FontPart AddFontPart (string contentType);
member this.AddFontPart : string -> DocumentFormat.OpenXml.Packaging.FontPart
Public Function AddFontPart (contentType As String) As FontPart
Parameters
- contentType
- String
The content type of the FontPart
Returns
The newly added part.
Applies to
AddFontPart(FontPartType, String)
Adds a FontPart to the FontTablePart
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
Parameters
- partType
- FontPartType
The part type of the FontPart
- id
- String
The relationship id
Returns
The newly added part.
Applies to
AddFontPart(String, String)
Adds a FontPart to the FontTablePart
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
Parameters
- contentType
- String
The content type of the FontPart
- id
- String
The relationship id
Returns
The newly added part.