Hello,
i want to remove a tabstop from a paragraph that gets inherited from a paragraphstyle without removing itself from the style.
I cant find anything in the documentation and the posts on the forum are so old that the samples are no longer available.
Codesnitppet:
var doc = new WordDocument();
var s = doc.AddSection();
var p = s.AddParagraph();
var normal = doc.Styles.FindByName("Normal") as WParagraphStyle;
normal.ParagraphFormat.Tabs.AddTab(300, TabJustification.Centered, TabLeader.NoLeader); // Tabstop in the style
p.ApplyStyle("Normal");
p.AppendText("blub1\tblub2\tblub3");
p.ParagraphFormat.Tabs.AddTab().DeletePosition = 300; // doesn't do anything
doc.Save("tab.docx");
Best regards