Back to Devexpress

Document.DifferentOddAndEvenPages Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-document-ab2f07be.md

latest3.7 KB
Original Source

Document.DifferentOddAndEvenPages Property

Gets or sets whether the document has different odd and even pages.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
bool DifferentOddAndEvenPages { get; set; }
vb
Property DifferentOddAndEvenPages As Boolean

Property Value

TypeDescription
Boolean

true if odd and even pages are different; otherwise, false.

|

Remarks

DifferentOddAndEvenPages value is used to specify different headers and footers for odd and even pages; and it may be used for other purposes, such as specifying different margins or print settings and print sequences.

The ToggleDifferentOddAndEvenPagesCommand provides the same functionality.

For a document section, you can specify a different first page via the Section.DifferentFirstPage property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DifferentOddAndEvenPages property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

word-processing-merge-documents-with-different-headers-and-footers/CS/Helpers/SectionsMerger.cs#L11

csharp
target.AppendRtfText(source.RtfText);
target.DifferentOddAndEvenPages = source.DifferentOddAndEvenPages;
for (int i = 0; i < sourceSectionCount; i++) {

word-processing-merge-documents-with-different-headers-and-footers/VB/Helpers/SectionsMerger.vb#L12

vb
target.AppendRtfText(source.RtfText)
target.DifferentOddAndEvenPages = source.DifferentOddAndEvenPages
For i As Integer = 0 To sourceSectionCount - 1

See Also

ToggleDifferentOddAndEvenPagesCommand

DifferentFirstPage

Odd

Even

ToggleDifferentFirstPageCommand

Document Interface

Document Members

DevExpress.XtraRichEdit.API.Native Namespace