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
site
Type: Microsoft.SharePoint.SPSiteThe site collection from which to get palettes
strThemeFolder
Type: System.StringThe folder within the theme gallery from which to get palettes
recursive
Type: System.BooleanWhether to recursively traverse subfolders when retrieving files
Return value
Type: System.Collections.ObjectModel.ReadOnlyCollection<SPColor>
A read-only list of color palettes