Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Box

DocumentLayout.DocumentLayoutInvalidated Event

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

Namespace: DevExpress.XtraRichEdit.API.Layout

Assembly: DevExpress.RichEdit.v20.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