SectionEnsureMinimum Method
Ensures that the section has Body with one Paragraph.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.9
Syntax
public void EnsureMinimum()
Examples
Ensures that a section is valid.
[C#]

// Create a blank document
Document doc = new Document();
Section section = doc.FirstSection;

// Makes sure that the section contains a body with at least one paragraph.
section.EnsureMinimum();
See Also