I'm adding tables to a word document, and there seems to be an automatic margin that is applied to it. I can move it to the left manually when the word document is open, but I want to be able to do this automatically using my C# code.
How can I do this using com and C#?
I usually find the best way to find the API method is to record a macro and look at the VB generated. Converting this to C# gives:
Selection.Tables(1).Rows.SetLeftIndent(5.4, RulerStyle.wdAdjustNone);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With