Share via


ThmxTheme.GetThemedCssReference method

Constructs a cascading style sheets (CSS) link.

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

Syntax

'Declaration
Public Shared Function GetThemedCssReference ( _
    canonicalCssReference As String, _
    enableTheming As Nullable(Of Boolean) _
) As String
'Usage
Dim canonicalCssReference As String
Dim enableTheming As Nullable(Of Boolean)
Dim returnValue As String

returnValue = ThmxTheme.GetThemedCssReference(canonicalCssReference, _
    enableTheming)
public static string GetThemedCssReference(
    string canonicalCssReference,
    Nullable<bool> enableTheming
)

Parameters

  • canonicalCssReference
    Type: System.String

    The reference to the file in the setup path.

  • enableTheming
    Type: System.Nullable<Boolean>

    true to enable a themed version of the theme file; otherwise false.

Return value

Type: System.String
The resulting CSS link.

See also

Reference

ThmxTheme class

ThmxTheme members

Microsoft.SharePoint.Utilities namespace