I am trying to remove answers from a test docx. The answers are underlined so we would like to remove the text above the underline for a 'student' test docx.
The problem is, if I just replace the text with blank spaces, the underline becomes much shorter.
How does one measure the pixel length of a string? System.Drawing.Graphics has a function called MeasureString which returns the string length in pixels based on the string and the font. Is there some equivalent in Aspose.Words? Can this be done?