Version

GetResolvedColor(DocumentRootNode,AutomaticColorUsageType) Method

Gets the actual color which will be seen in the UI.
Syntax
'Declaration
 
Public Overloads Function GetResolvedColor( _
   ByVal documentRootNode As DocumentRootNode, _
   ByVal automaticColorUsageType As AutomaticColorUsageType _
) As Color

Parameters

documentRootNode
The root node of the document in which the ColorInfo is used.
automaticColorUsageType
Used to resolve automatic colors.

Return Value

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

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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