Free Support Forum - aspose.com

How to draw an oblique line in a cell of table in aspose.words?

We want to split a cell into two area with a slash, as you know in word it is easy with hand, but how to draw it with code? thanks a lot.

Hi Andy,


Thanks for your inquiry. Could you please attach your input Word document and target Word document (that shows as to how you want to split a cell into two areas with a slash) here for testing? You can use Microsoft Word to create your expected document. I will then investigate your scenario on my side and provide you code snippet.

Best regards,

Please see the attachment.thanks.

Hi Andy,


Thanks for your inquiry. You can make use of BorderType.DiagonalDown or BorderType.DiagonalUp properties. These are used to specify the diagonal border in a table cell:
http://www.aspose.com/docs/display/wordsnet/BorderType+Enumeration

Best regards,