officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-section-d3153626.md
Gets or sets the type of a section break.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
SectionStartType StartType { get; set; }
Property StartType As SectionStartType
| 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.
|
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;
Dim document As Document = wordProcessor.Document
document.LoadDocument("Documents\Grimm.docx")
document.InsertSection(document.Paragraphs(4).Range.[End])
Dim insertedSection As Section = document.GetSection(targetPosition)
insertedSection.StartType = SectionStartType.Continuous
See Also