Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomViewInfoItem.Invalidate(TRect,Boolean) Method

Repaints a visual element.

#Declaration

Delphi
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