ApiExamples.ExSection.EnsureSectionMinimum C# (CSharp) Метод

EnsureSectionMinimum() приватный Метод

private EnsureSectionMinimum ( ) : void
Результат void
        public void EnsureSectionMinimum()
        {
            //ExStart
            //ExFor:Section.EnsureMinimum
            //ExSummary:Ensures that a section is valid.
            // 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();
            //ExEnd
        }