Share via


SPFont.GetFont method

Gets the ThemeFont for a given font slot.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetFont ( _
    slot As String _
) As ThemeFont
'Usage
Dim instance As SPFont
Dim slot As String
Dim returnValue As ThemeFont

returnValue = instance.GetFont(slot)
public ThemeFont GetFont(
    string slot
)

Parameters

Return value

Type: Microsoft.SharePoint.Utilities.ThemeFont
The ThemeFont object for the given slot, or null if no slot with that name is defined in this font scheme

See also

Reference

SPFont class

SPFont members

Microsoft.SharePoint.Utilities namespace