Section.StartType Property
Gets or sets the type of a section break.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
SectionStartType | A SectionStartType enumeration value specifying where the next section starts. |
Available values:
Name | Description |
---|---|
NextPage | A page is broken at the section break. The new section starts on the next page. |
OddPage | A new section begins on the next odd-numbered page. If the section break falls on an odd-numbered page, the next even-numbered page is left blank. |
EvenPage | A new section begins on the next even-numbered page. If the section break falls on an even-numbered page, the next odd-numbered page is left blank. |
Continuous | A new section starts on the following paragraph of the same page. |
Column | A new section starts on the next column on the page. |
Remarks
The code sample below shows how to insert continuous section break after the specific paragraph:
Document document = wordProcessor.Document;
document.LoadDocument("Documents\\Grimm.docx");
document.InsertSection(document.Paragraphs[4].Range.End);
Section insertedSection = document.GetSection(targetPosition);
insertedSection.StartType = SectionStartType.Continuous;