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

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

private SectionsImportSection ( ) : void
Результат void
        public void SectionsImportSection()
        {
            //ExStart
            //ExId:SectionsImportSection
            //ExSummary:Shows how to copy sections between documents.
            Document srcDoc = new Document(MyDir + "Document.doc");
            Document dstDoc = new Document();

            Section sourceSection = srcDoc.Sections[0];
            Section newSection = (Section)dstDoc.ImportNode(sourceSection, true);
            dstDoc.Sections.Add(newSection);
            //ExEnd
        }