ASNA Monarch™ Framework 9.0

DdsField.InvertFontColor Property

Gets or sets whether to invert the font and background colors of the field.


BegProp InvertFontColor Access(*Public) Type(Boolean)
   BegGet;  BegSet

Property Values

Boolean. If True, colors for the font and background are inverted. If the background color is transparent, "white" will be used instead.


To set the InvertFontColor property, click on the right hand side of the property window and select True or False.

The property operates by swapping the CSS styles color and background-color.

To produce a nicer effect, consider reconfiguringing the WebControl ForeColor and BackColor propertites when using white background on Pages (very common).

Just having the following property:


produces the "Before" rendering on the image below. Adding "ForeColor" and "BackColor":


Produces the "After" rendering on the image below:

This property is primarily intended to support migration of the DSPATR:RI keyword.


Namespace: ASNA.Monarch.WebDspF

Assembly: ASNA.Monarch.WebDspF.DLL

Platforms: Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro