I am wondering, using code below, although i have set Leftpadding=0, but there is still space:
if (test2)
{
if (j == 0)
{
builder.CellFormat.PreferredWidth = PreferredWidth.FromPoints(ConvertUtil.InchToPoint(1.74));
}
else if (j == 1)
{
builder.CellFormat.PreferredWidth = PreferredWidth.FromPoints(ConvertUtil.InchToPoint(4.51));
builder.CellFormat.LeftPadding = 0; // no work
}
}
if (j == 1)
{
font2.Size = 8;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;
List lst = doc.Lists.Add(ListTemplate.BulletSquare);
builder.ListFormat.List = lst;
builder.InsertHtml(ssAAssetCritical[i, j], true);
builder.ListFormat.RemoveNumbers();
}
What cause the space and how to remove it? (in the doc attached, it is on page 31). I try using:
builder.ParagraphFormat.LeftIndent = 0;
but it does not work, although in MS-Word, it change the indent of paragraph manually to 0, it works.
It still does not work, until i put:
lst.ListLevels[0].TextPosition = 0;
It is much better now, the spacing is narrower. But cannot up to the left most.
I try to set the indentation in Ms Words, in addition to those lines, it works if we set the “follow with number” with “nothing”. I try using:
lst.ListLevels[0].TabPosition = 0;