Gets the ColorDetail object identified by the colorString.
public static ColorDetail GetColorDetail(
string colorString
)
Parameters
- colorString
-
Type: string
The name or ARGB code that uniquely identifies a ColorDetail object.
Return Value
A ColorDetail object. Null if no match found.
This example shows how to lookup ColorDetail objects
(by hex ARGB value or by name) and work with their properties.
/* Lookup BlueViolet by its ARGB value. */
var bv = "#FF8A2BE2";
var cd = WV.GetColorDetail(bv);
/* Set the background color of this Text Entry control to BlueViolet. */
SETP("@FillColor", cd.Brush);
/* Set the text color to BlanchedAlmond. */
SETP("@TextColor", WV.GetColorDetail("BlanchedAlmond").Brush);
/* Output details of BlueViolet. */
string.Format("{0} has an ARGB code of #{1:X8}", cd.Name, cd.Code);

