TextColorExpression Property

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

SeqViewColumn.TextColorExpression

Data Type

String

Purpose

Specifies an expression that determines the text color for individual cells in the column at run time.

Remarks

This expression overrides the item color the SequenceView.TextColor and SequenceView.ItemTextColorExpression properties define.

The expression must return a numeric color value. When you do not want to change the text color, return -1, as the following example shows:

Step.Result.Status == "Failed" ? tsRed: -1

When you assign this expression string to the TextColorExpression property of a column and run the application, the control colors the column text red for steps that fail.

When empty, the control ignores this property.


See Also

SequenceView.ItemTextColorExpression

SequenceView.TextColor

WAS THIS ARTICLE HELPFUL?

Not Helpful