共用方式為


SPColor.GetColorShadeByName method

取得從這個調色盤的色彩,由其名稱

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

Syntax

'宣告
Public Function GetColorShadeByName ( _
    name As String, _
    fixContrast As Boolean _
) As Nullable(Of Color)
'用途
Dim instance As SPColor
Dim name As String
Dim fixContrast As Boolean
Dim returnValue As Nullable(Of Color)

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

參數

  • name
    Type: System.String

    所要求之色彩插槽的名稱。這也可能包括其名稱。例如,"BackgroundOverlay"和"BackgroundOverlay-較淡 」

  • fixContrast
    Type: System.Boolean

    是否要修正上非預設網底的色彩對比,如果這是反向的佈景主題

傳回值

Type: System.Nullable<Color>
指定的位置或 null 如果介面槽不存在於這個調色盤的色彩。

請參閱

參照

SPColor class

SPColor members

Microsoft.SharePoint.Utilities namespace