Sets whether paragraph is displayed on the same page as its following paragraph.

<void> ParagraphFormat.setKeepWithNext(<boolean> keepWithNext, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
keepWithNext Specifies whether paragraph is displayed on the same page as its following paragraph.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.