How can I change spacing between words ?
I would like use Expanded option as there
Note that this expanding or condensing is not between words, instead, it is between each letter.
Nevertheless, try setting the
CharacterFormat.Spacing property like the following:
var document = new DocumentModel(); var run = new Run(document, "Sample text."); run.CharacterFormat.Spacing = 10; document.Sections.Add( new Section(document, new Paragraph(document, run))); document.Save(desktop + "\\output.docx");
Also, please check the Character Formatting example.
I hope this helps.
Could you please add this feature ?
As you can see from the provided snippet code, GemBox.Document already supports the expanded option that you linked…
I mean the lenght between letters
Client example for reproduce:
Okey, I have found a solution
ParagraphFormat.Alignment = HorizontalAlignment.Justify;
I’m glad you were able to solve this.
Just as an FYI, that is a different option: