Anybody have idea how to remove section itself, not text in it, with script? notesRichTextSection.Remove removes section and text in it.
I mean kind of remove like when document is in edit mode and you select section and from section menu select remove. Section is removed, but text inside section remains.
I don’t think the native classes have any way to do it, except perhaps by dumping to DXL and modifying the DXL and re-importing. Our Midas Rich Text LSX has a method called RemoveSection, for what it is worth, but unless you want Midas for other rich text manipulation, you might want another approach.
Note that this would not modify any document without sections, and also note that the rtitem.Save is sufficient, and you shouldn’t do a doc.Save as well. Hope that helps.
Basicly I know how to deal with texts. But…Section can contain tables and text etc. How can I copy all elements from inside of the section to its outside?