ComponentOne VSFlexGrid 8.0
CellFloodPercent Property

Returns or sets the percentage of flooding for a cell.

Syntax

[form!]VSFlexGrid.CellFloodPercent[ = value As Integer ]

Remarks

This property allows you to fill up a portion of a cell so it can be used as a progress indicator or a bar in a bar chart.

Setting this property to a value between -100 and 100 causes the cell to be filled with the color specified by the FloodColor property or CellFloodColor property.

For example, the following code makes it so the FloodColor will start from the right and fill 25% of the cell.

  FG.CellFloodPercent = -25   

Positive values fill the cell from left to right. Negative values fill it from right to left.

Changing this property affects the current cell or the current selection depending on the setting of the FillStyle property. To set the flood color of an arbitrary range of cells (not necessarily the current selection), use the Cell property instead.

The Cell Flooding Demo shows how this property is used.

Data Type

Integer

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback