Hello Support Team,
I run on an issue when appending html to a new paragraph.
e.g.
<div>Text1</div>
<div>Text2</div>
<div>Text3</div>
<div>Text4</div>
If I append the html and indent the paragraph, only the text from the first tag (Text1)
is affected. Text2 etc. has no indentation. I have this behavior regardles of doing indetation by
setting the property
paragraph.Format.LeftIndent = 10;
or applying a style
paragraph.ApplyStyle(styleWithIndentation)
How can I affect the whole paragraph with all its html content?
As I can see, it creates more then on paragraph from the html. Is there a way to access all the generated paragraphs an set the style?
<w:p w:rsidR="005F7EF8" w:rsidRDefault="0073235D" w:rsidP="005A4F1C">
<w:pPr>
<w:pStyle w:val="Liste4"/>
<w:divId w:val="1"/>
</w:pPr>
<w:r>
<w:t xml:space="preserve"> Text1 </w:t>
</w:r>
</w:p>
<w:p w:rsidR="005F7EF8" w:rsidRDefault="0073235D">
<w:pPr>
<w:divId w:val="3"/>
</w:pPr>
<w:r>
<w:rPr>
<w:sz w:val="24"/>
</w:rPr>
<w:t>Text2</w:t>
</w:r>
Best regards,
Arne