Back to Devexpress

Section.StartType Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-section-d3153626.md

latest2.6 KB
Original Source

Section.StartType Property

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

Declaration

csharp
SectionStartType StartType { get; set; }
vb
Property StartType As SectionStartType

Property Value

TypeDescription
SectionStartType

A SectionStartType enumeration value specifying where the next section starts.

|

Available values:

NameDescription
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:

csharp
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;
vb
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

Section Interface

Section Members

DevExpress.XtraRichEdit.API.Native Namespace