Hello, how Can I change the dotted spacing in a space inside the table of content fields?
IWParagraph paragraph = page.AddParagraph();
paragraph.ParagraphFormat.AfterSpacing = 10;
paragraph.ParagraphFormat.BeforeSpacing = 10;
paragraph.ParagraphFormat.LeftIndent = 150;
IWTextRange title = paragraph.AppendText("Table of contents");
title.CharacterFormat.FontSize = 25;
title.CharacterFormat.FontName = "Arial";
title.CharacterFormat.Bold = true;
TableOfContent tableOfContents = paragraph.AppendTOC(1, 8);
tableOfContents.IncludePageNumbers = true;
tableOfContents.UseHeadingStyles = true;
Style style = Style.CreateBuiltinStyle(BuiltinStyle.Toc1, document) as Style;
style.CharacterFormat.Bold = true;
style.CharacterFormat.FontSize = 12;
style.CharacterFormat.FontName = "Arial";
document.Styles.Add(style);
document.UpdateTableOfContents();