Make Hidden Table Border in Word Document Visible using C# .NET API, Show Hide Table Borders, Increase Border Line Width

assuming that we start a table like

builder.StartTable();

how to make the borders visible .. the following lines gives compilation error saying they are not settable.

/*builder.ParagraphFormat.Borders.Top.IsVisible = true;

builder.ParagraphFormat.Borders.Left.IsVisible = true;

builder.ParagraphFormat.Borders.Bottom.IsVisible = true;

builder.ParagraphFormat.Borders.Right.IsVisible = true;*/

Hi,

If you need to make table borders visible, just set the DocumentBuilder.RowFormat.Borders.LineWidth property to a value greater than zero.