TcxCustomViewInfoItem.Invalidate(TRect,Boolean) Method
Repaints a visual element.
Declaration
procedure Invalidate(const R: TRect; AEraseBackground: Boolean = False); overload; virtual;
Parameters
Name | Type |
---|---|
R | TRect |
AEraseBackground | Boolean |
Remarks
Use the Invalidate
method to repaint elements whenever you need. You can force ViewInfo to be recalculated before repainting by passing True
as the ARecalculate
parameter. By default, the method does not recalculate ViewInfo to save system time and resources and to provide smooth repainting. Elements can have a complex structure and recalculating their ViewInfos is a very slow operation. So force ViewInfo recalculation only if it is absolutely necessary.
See Also