Share via


ThemeFontFace.PreviewFontFaceBlock property

A generated CSS font-face block for generating mock previews. Returns null if this isn't a WebFont.

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

Syntax

'Declaration
Public ReadOnly Property PreviewFontFaceBlock As String
    Get
'Usage
Dim instance As ThemeFontFace
Dim value As String

value = instance.PreviewFontFaceBlock
public string PreviewFontFaceBlock { get; }

Property value

Type: System.String

Remarks

Only use for previewing with mock HTML previews. For passing into the actual theming engine, call GenerateFontFaceBlock(int) with the SPWeb's ClientTag.

See also

Reference

ThemeFontFace class

ThemeFontFace members

Microsoft.SharePoint.Utilities namespace