ThmxTheme.GetThemeFontByName Method

Gets a theme font by name.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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.

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