Which property defines the border of a paragraph or table?

I am adding tables to a text document and it seems like automatic margin is applied to it. I can move it to the left manually when the word document is open, but I want it to be possible to do this automatically using my C # code.

enter image description here

How to do this using com and c #?

+6
source share
1 answer

I usually find that the best way to find an API method is to record a macro and look at the generated VB. Converting this to C # gives:

Selection.Tables (1) .Rows.SetLeftIndent (5.4, RulerStyle.wdAdjustNone);

+1
source

Source: https://habr.com/ru/post/910525/


All Articles