共用方式為


ThmxTheme.GetThemeShadeByNameOrNull method

取得由名稱或 null 的佈景主題網底,如果沒有這類的佈景主題網底存在於這個佈景主題

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

Syntax

'宣告
Public Function GetThemeShadeByNameOrNull ( _
    themeColorName As String, _
    fixContrast As Boolean _
) As Nullable(Of Color)
'用途
Dim instance As ThmxTheme
Dim themeColorName As String
Dim fixContrast As Boolean
Dim returnValue As Nullable(Of Color)

returnValue = instance.GetThemeShadeByNameOrNull(themeColorName, _
    fixContrast)
public Nullable<Color> GetThemeShadeByNameOrNull(
    string themeColorName,
    bool fixContrast
)

參數

  • themeColorName
    Type: System.String

    佈景主題網底名稱字串的格式: ColorName [-ShadeName] 有效的 ShadeNames 所在位置: 深、 深中, 度、 中較淺、 Lightest (及無網底取得色彩的預設陰影)。

  • fixContrast
    Type: System.Boolean

    是否要編輯的根據整個佈景主題是否已反轉的色彩對比。

傳回值

Type: System.Nullable<Color>
表示佈景主題的網底或 null,如果沒有這類的佈景主題網底存在於這個佈景主題色彩。

Implements

ISPTheme.GetThemeShadeByNameOrNull(String, Boolean)

請參閱

參照

ThmxTheme class

ThmxTheme members

Microsoft.SharePoint.Utilities namespace