public final class BodySplitHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getBodyChildIndex(com.aspose.words.Body body,
int paragraphIndex)
Resolves the paragraph index produced by
NodeEnumerator into an index
in the body's direct child list, which is the only list a split may remove from. |
static void |
splitBody(com.aspose.words.Body head,
com.aspose.words.Body tail,
int paragraphIndex)
Moves the body content at and after
paragraphIndex from head into
tail, which must start as a clone of it. |
public static int getBodyChildIndex(com.aspose.words.Body body,
int paragraphIndex)
Resolves the paragraph index produced by NodeEnumerator into an index
in the body's direct child list, which is the only list a split may remove from.
public static void splitBody(com.aspose.words.Body head,
com.aspose.words.Body tail,
int paragraphIndex)
Moves the body content at and after paragraphIndex from head into
tail, which must start as a clone of it.
Splits on direct children rather than on paragraphs: a paragraph-only split leaves tables in both halves, and indexing a deep (recursive) collection to call removeAt throws once a nested paragraph is reached, because removeAt works on the parent's own child list.
Copyright © 2026 GroupDocs. All rights reserved.