Share via


SPColor.GetColorPalettesFromFolder method

Gets the color palettes in a given folder

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

Syntax

'Declaration
Public Shared Function GetColorPalettesFromFolder ( _
    site As SPSite, _
    strThemeFolder As String, _
    recursive As Boolean _
) As ReadOnlyCollection(Of SPColor)
'Usage
Dim site As SPSite
Dim strThemeFolder As String
Dim recursive As Boolean
Dim returnValue As ReadOnlyCollection(Of SPColor)

returnValue = SPColor.GetColorPalettesFromFolder(site, _
    strThemeFolder, recursive)
public static ReadOnlyCollection<SPColor> GetColorPalettesFromFolder(
    SPSite site,
    string strThemeFolder,
    bool recursive
)

Parameters

  • strThemeFolder
    Type: System.String

    The folder within the theme gallery from which to get palettes

  • recursive
    Type: System.Boolean

    Whether to recursively traverse subfolders when retrieving files

Return value

Type: System.Collections.ObjectModel.ReadOnlyCollection<SPColor>
A read-only list of color palettes

See also

Reference

SPColor class

SPColor members

Microsoft.SharePoint.Utilities namespace