SPTheme.GetThemeFontByName method

Gets a theme font by font slot name.

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

Syntax

'Declaration
Public Function GetThemeFontByName ( _
    fontName As String _
) As ThemeFont
'Usage
Dim instance As SPTheme
Dim fontName As String
Dim returnValue As ThemeFont

returnValue = instance.GetThemeFontByName(fontName)
public ThemeFont GetThemeFontByName(
    string fontName
)

Parameters

Return value

Type: Microsoft.SharePoint.Utilities.ThemeFont
The corresponding ThemeFont object.

Implements

ISPTheme.GetThemeFontByName(String)

See also

Reference

SPTheme class

SPTheme members

Microsoft.SharePoint.Utilities namespace