Share via


ThmxTheme.GetThemeFontByName method

Gets a theme font by name.

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

Syntax

'Declaration
Public Function GetThemeFontByName ( _
    themeFontName As String _
) As ThemeFont
'Usage
Dim instance As ThmxTheme
Dim themeFontName As String
Dim returnValue As ThemeFont

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

Parameters

  • themeFontName
    Type: System.String

    A font name string. Valid names are MajorFont and MinorFont.

Return value

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

Implements

ISPTheme.GetThemeFontByName(String)

Remarks

If the value of the themeFontName parameter is “MajorFont”, this method returns the value of the MajorFont property; if the value of the themeFontName parameter is “MinorFont”, this method returns the value of the MinorFont property.

See also

Reference

ThmxTheme class

ThmxTheme members

Microsoft.SharePoint.Utilities namespace