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
slot
Type: System.StringThe slot name
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