共用方式為


ThemeFont.SetFontForScript Method

Sets the font associated with a language.

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

Syntax

'Declaration
Public Sub SetFontForScript ( _
    script As String, _
    font As String _
)
'Usage
Dim instance As ThemeFont
Dim script As String
Dim font As String

instance.SetFontForScript(script, font)
public void SetFontForScript(
    string script,
    string font
)

Parameters

  • script
    Type: System.String

    The language to associate with the font.

  • font
    Type: System.String

    The font name to associate with the script.

Exceptions

Exception Condition
ArgumentNullException

script or fontis null .

Remarks

If the value of the script parameter is [“Latn”], this method sets the value of the LatinFont property to the value of the font parameter and returns.

See Also

Reference

ThemeFont Class

ThemeFont Members

Microsoft.SharePoint.Utilities Namespace