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


PresentationPart.AddFontPart Method (String, String)

Adds a FontPart to the PresentationPart.

Namespace:  DocumentFormat.OpenXml.Packaging
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Декларация
Public Function AddFontPart ( _
    contentType As String, _
    id As String _
) As FontPart
'Применение
Dim instance As PresentationPart
Dim contentType As String
Dim id As String
Dim returnValue As FontPart

returnValue = instance.AddFontPart(contentType, _
    id)
public FontPart AddFontPart(
    string contentType,
    string id
)

Parameters

  • contentType
    Type: System.String
    the content type of the FontPart

Return Value

Type: DocumentFormat.OpenXml.Packaging.FontPart
The newly added part.

See Also

Reference

PresentationPart Class

PresentationPart Members

AddFontPart Overload

DocumentFormat.OpenXml.Packaging Namespace