We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Finding Control codes


When decoding paragraph Runs, I need to identify controls codes.
Is the only way to achieve this a string to char[] and search or is there a better way.



Hi Jan,

Thanks for your inquiry. A Word document can contain control characters that designate special elements such as field, end of cell, end of section etc. The full list of possible Word control characters is defined in the ControlChar class. For example, you could loop through all Run nodes in your document and find a Line break character by using ControlChar.LineBreak field.

Best regards,