共用方式為


ThemeFont.GetFontForLanguage Method

Gets the font associated with the specified language.

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

Syntax

'Declaration
Public Function GetFontForLanguage ( _
    lcid As UInteger _
) As String
'Usage
Dim instance As ThemeFont
Dim lcid As UInteger
Dim returnValue As String

returnValue = instance.GetFontForLanguage(lcid)
public string GetFontForLanguage(
    uint lcid
)

Parameters

  • lcid
    Type: System.UInt32

    The language with which the font is associated.

Return Value

Type: System.String
The font associated with the language.

Remarks

If there is no font associated with the language, this method returns ["Latn"].

See Also

Reference

ThemeFont Class

ThemeFont Members

Microsoft.SharePoint.Utilities Namespace