共用方式為


SPColor.GetColorPalettesFromFolder method

取得在指定的資料夾中的 [色彩] 調色盤

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

Syntax

'宣告
Public Shared Function GetColorPalettesFromFolder ( _
    site As SPSite, _
    strThemeFolder As String, _
    recursive As Boolean _
) As ReadOnlyCollection(Of SPColor)
'用途
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
)

參數

  • strThemeFolder
    Type: System.String

    要從中取得調色盤的佈景主題圖庫中的資料夾

  • recursive
    Type: System.Boolean

    是否要以遞迴方式周遊子資料夾擷取檔案時

傳回值

Type: System.Collections.ObjectModel.ReadOnlyCollection<SPColor>
調色盤唯讀清單

請參閱

參照

SPColor class

SPColor members

Microsoft.SharePoint.Utilities namespace