officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-document-ab2f07be.md
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
bool DifferentOddAndEvenPages { get; set; }
Property DifferentOddAndEvenPages As Boolean
| Type | Description |
|---|---|
| Boolean |
true if odd and even pages are different; otherwise, false.
|
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
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
target.AppendRtfText(source.RtfText)
target.DifferentOddAndEvenPages = source.DifferentOddAndEvenPages
For i As Integer = 0 To sourceSectionCount - 1
See Also
ToggleDifferentOddAndEvenPagesCommand