Hi,
I have been trying to set Table’s border to LineStyle.None preserving other properties like width and color, but it does not take it into consideration when using SetBorder method. Is this something you can fix?
var doc= new Document();
var builder = new DocumentBuilder(doc);
var table = builder.StartTable();
builder.InsertCell();
builder.Write("Row 1, Cell 1 Content.");
table.SetBorders(LineStyle.Single, 3,Color.Red);
table.SetBorder(BorderType.Bottom,LineStyle.None, 5, Color.Blue, false);
builder.EndRow();
builder.EndTable();
builder.Document.Save(@".\test2.docx");
Thanks,
Lukasz
@acturisaspose,
Thanks for your inquiry. Please use the line width as 0 in Table.SetBorder method.
var doc = new Document();
var builder = new DocumentBuilder(doc);
var table = builder.StartTable();
builder.InsertCell();
builder.Write("Row 1, Cell 1 Content.");
builder.EndRow();
builder.EndTable();
table.SetBorders(LineStyle.Single, 3, Color.Red);
table.SetBorder(BorderType.Bottom, LineStyle.None, 0, Color.Blue, false);
doc.Save(MyDir + "18.6.docx");
Hi,
Thank you.
However, should not this mimic Words’s functionality? I mean when you set LineStyle to None in a Word document, I do not need to change line width.
Thanks,
Lukasz
@acturisaspose,
Thanks for your inquiry. Could you please share some detail about your use case in which you do not want to use line width as 0? We will then log this feature accordingly in our issue tracking system.