Skip to main content
Box

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

DocumentLayout.DocumentLayoutInvalidated Event

Fires after any document modification which makes the current layout outdated.

Namespace: DevExpress.XtraRichEdit.API.Layout

Assembly: DevExpress.RichEdit.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#Declaration

public event DocumentLayoutInvalidatedEventHandler DocumentLayoutInvalidated

#Event Data

The DocumentLayoutInvalidated event's data class is DocumentLayoutInvalidatedEventArgs. The following properties provide information specific to this event:

Property Description
PageIndex Returns an index of a page from which the document layout recalculation starts.

#Remarks

When a document is changed, the DocumentLayout.DocumentLayoutInvalidated event occurs. After an individual page is formatted, the DocumentLayout.PageFormatted event fires. And finally, when the document layout is calculated for all pages, the DocumentLayout.DocumentFormatted event is raised.

Event data contains a page index that identifies the page at which layout recalculation starts. Previous pages are not recalculated so their layout remains valid.

See Also