SPThemeInfo.GetThemeShadeColorByName method
依名稱取得佈景主題網底。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function GetThemeShadeColorByName ( _
name As String _
) As Nullable(Of Color)
'用途
Dim instance As SPThemeInfo
Dim name As String
Dim returnValue As Nullable(Of Color)
returnValue = instance.GetThemeShadeColorByName(name)
public Nullable<Color> GetThemeShadeColorByName(
string name
)
參數
name
Type: System.String佈景主題網底名稱字串的格式:
ColorName[-ShadeName]
有效的ShadeNames所在位置:
深
暗
中等
較細
最亮
並無網底,以取得色彩的預設陰影。
傳回值
Type: System.Nullable<Color>
表示佈景主題的網底或a null reference (Nothing in Visual Basic) ,如果沒有這類的佈景主題網底色彩。