Version

GetResolvedColor(Workbook) Method

Gets the actual color which will be seen in Microsoft Excel if the WorkbookColorInfo is used.
Syntax
'Declaration
 
Public Overloads Function GetResolvedColor( _
   ByVal workbook As Workbook _
) As Color
public Color GetResolvedColor( 
   Workbook workbook
)

Parameters

workbook
The workbook in which the WorkbookColorInfo is used.

Return Value

A Color which combines the Color, ThemeColorType, and/or Tint, depending on what is set.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionworkbook is null and ThemeColorType is not null. When the ThemeColorType is set, the method must be called with a non-null Workbook.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also