Navigation:  Contents > Text information output > Output of text parameters >

StimulReport.Net User Manual

Print this Topic Previous pageReturn to chapter overviewNext page

Highlight condition

Highlight condition allows you to modify the format of the Text component that depends on the condition. You can setup the Highlight Condition using the HighlightCondition property or the button on the Formatting toolbar.

 

This button calls the highlight condition

 

Parameters of the highlight condition are specified in the special window. In the window of highlight condition parameters of the component format and conditions can be specified.

 

Condition

If the condition is not true then the component format is changed to the one specified in parameters.

Parameters of the text

This group contains parameters of the selected format of a component.

Parameters of the background

This group contains parameters of the background fill of the selected component.

 

Notice! If you want to remove the conditional formatting just clear the text of condition

A condition can be an expression. If a condition is true then the Text component format will be changed. For setting, the TextBrush, Font and Brush properties are available. For example, if stocks of products are zero, then the line can be marked as red. For making this procedure you should write:

 

 

Products.UnitsInStock == 0

 

 

In the Brush property set the red color, and for the TextBrush component - white color.

 

(See Demo, Highlight Condition).