May 14, 2012 at 10:13 AM
Edited May 14, 2012 at 10:41 AM
I opened existing document, changed paragraph text to new and created new paragraph with InsertParagraphAfterSelf. But:
- After first paragraph (where is changed text) extra paragraph appeared. <SOLVED - My fault>
- Second and other paragraphs format differs from first: different indentation, line spacing.
I tried to copy some format:
newPar.IndentationFirstLine = par.IndentationFirstLine;
But result was very strange - looked that indentation become negative. If I set indentation to constant:
newPar.IndentationFirstLine = (float)1.5;
indentation become correct.
Is there any way to copy all format of the paragraph and set it to new paragraph?
breaks with exception?