SPColor.GetColorShadeByName 方法

获得此调色板颜色的名称

命名空间:  Microsoft.SharePoint.Utilities
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.String

    所请求的颜色槽的名称。这可能还包括一个阴影的名称。例如,"BackgroundOverlay"和"BackgroundOverlay-轻"

  • fixContrast
    类型:System.Boolean

    是否要修复的颜色对比度非默认底纹上,如果这是一个反向的主题

返回值

类型:System.Nullable<Color>
指定的插槽中或为空插槽不存在此调色板中的颜色。

另请参阅

引用

SPColor 类

SPColor 成员

Microsoft.SharePoint.Utilities 命名空间