Skip to main content
Box

LayoutIterator(DocumentLayout, SubDocument, FixedRange) Constructor

Initializes a new instance of the LayoutIterator class to navigate in the specified document range.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

public LayoutIterator(
    DocumentLayout documentLayout,
    SubDocument document,
    FixedRange range
)

Parameters

Name Type Description
documentLayout DocumentLayout

A DocumentLayout object which provides access to the document layout model.

document SubDocument

A SubDocument that is the document in which the LayoutIterator will navigate.

range FixedRange

A FixedRange object which specifies the starting position and the length of a range in which the LayoutIterator will navigate.

Remarks

Use constructor to create a new LayoutIterator instance when the document layout is invalidated (the LayoutIterator.IsLayoutValid property is false).

Note

The document layout is invalidated and rebuilt after any document modification. When the user selects another SubDocument (the content of the TextBox, header or footer), the layout is also invalidated.

See Also