Object Reference > True DBGrid Methods > ClearRegexCellStyle Method |
ClearRegexCellStyle Method
The ClearRegexCellStyle method removes a cell condition established with a previous call to the AddRegexCellStyle method for the object in question.
object.ClearRegexCellStyle condition, [regex]
Arguments
condition is a combination of one or more CellStyleConstants.
regex is an optional regular expression string.
Return Value
None
If no such cell condition exists, then calling this method has no effect.
If regex is omitted, then all cell conditions for any regular expression matching the condition argument are removed. If condition is -1 (dbgAllCells), then all regex cell conditions are removed, regardless of status or expression.
If regex is supplied, then the single cell condition matching both arguments is removed. However, if condition is -1 (dbgAllCells), then all cell conditions for the specified regular expression are removed, regardless of status.