Paragraph - split pages handling

If paragraph is flowing over multiple pages, how to setup its split pages handling properties i.e.

  1. widow/orphan control
  2. keep line together
  3. keep with next
  4. page break before

A code sample would be helpful.

Thanks.

Ajit Singh

Hi
Thanks for your request. You can set these options via ParagraphFormat. Please follow the link for more information:
https://reference.aspose.com/words/net/aspose.words/paragraphformat/
Please let us know if you need more information, we will be glad to help you.
Best regards,

Thanks for the reply. You guys are awesome. So quick reply.