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

TdxLayoutContainer.InvalidateRect(TRect,Boolean) Method

Adds the region occupied by a control rectangle to a specified window’s update region. The update region represents a portion of the control client area that must be redrawn.

#Declaration

Delphi
procedure InvalidateRect(const R: TRect; EraseBackground: Boolean);

#Parameters

Name Type
R TRect
EraseBackground Boolean

#Remarks

Call the InvalidateRect method when the area occupied by a control rectangle will need to be repainted.

R provides access to the TRect that contains client coordinates of the control rectangle to be added to the update region. If this parameter is NULL, the entire client area is added to the update region.

EraseBackground specifies whether the background within the control rectangle region specified by the R parameter is to be erased when processing the update region. If EraseBackground is True, the background is erased when redrawing the control rectangle region. If this parameter is False, the background remains unchanged.

See Also