property ConditionalFormat.Underline as Boolean

Underlines the objects that match the condition.

Type | Description | |||

Boolean | A boolean expression that indicates whether the objects are underlined. |

The ApplyTo
property specifies whether the ConditionalFormat object is applied to items or
to cells in the column. The following VB sample underlines the cells in the second
column ( 1 ), if the sum between second and third column ( 2 ) is less than
the value in the first column ( 0 ):

Send comments on this topic. © 1999-2017 Exontrol.COM, Software. All rights reserved.

With Grid1.ConditionalFormats.Add("%1+%2<%0") .ApplyTo = 1 .Underline = True End With

The following C++ sample underlines the cells in the second column ( 1 ), if the sum between second and third column ( 2 ) is less than the value in the first column ( 0 ):

COleVariant vtEmpty; CConditionalFormat cf = m_grid.GetConditionalFormats().Add( "%1+%2<%0", vtEmpty ); cf.SetUnderline( TRUE ); cf.SetApplyTo( 1 );

The following VB.NET sample underlines the cells in the second column ( 1 ), if the sum between second and third column ( 2 ) is less than the value in the first column ( 0 ):

With AxGrid1.ConditionalFormats.Add("%1+%2<%0") .ApplyTo = 1 .Underline = True End With

The following C# sample underlines the cells in the second column ( 1 ), if the sum between second and third column ( 2 ) is less than the value in the first column ( 0 ):

EXGRIDLib.ConditionalFormat cf = axGrid1.ConditionalFormats.Add("%1+%2<%0",null); cf.Underline = true; cf.ApplyTo = (EXGRIDLib.FormatApplyToEnum)1;

The following VFP sample underlines the cells in the second column ( 1 ), if the sum between second and third column ( 2 ) is less than the value in the first column ( 0 ):

with thisform.Grid1.ConditionalFormats.Add("%1+%2<%0") .Underline = .t. .ApplyTo = 1 endwith

Send comments on this topic. © 1999-2017 Exontrol.COM, Software. All rights reserved.