Thank you for fixing the multiple issues for me in the past. I am currently having an issue with the Table Of Contents ListSection. When the list item numbering gets to multiple digits (1.10, 1.11, 1.12, …), the same amount of indent is applied to the subsequent text. While the numbers line up vertically, the text in the list items shifts one space when the numbering gets to this point of multiple digits. Is there a way (or could you provide a way, or fix the issue as it makes more sense to align) to make the text in the list items align? I’ve looked at SubsequentLinesIndent, but I don’t think that is what I want.
I’ve attached a sample explaining the issue. Thanks!
Hi,
Thank you for considering Aspose.
You can do that by setting the “LabelWidth” property of “Heading”. Please try to set the same label width of all the Heading. For Example:
Dim heading1 As Heading = New Heading(pdf1, Sec1, 1)
Dim segment1 As Segment = New Segment(heading1)
heading1.Segments.Add(segment1)
heading1.LabelWidth = 60
heading1.IsAutoSequence = True
segment1.Content = "Point 1 "
Sec1.Paragraphs.Add(heading1)
'Level two Table of content
Dim heading2a As Heading = New Heading(pdf1, Sec1, 2)
Dim segment2a As Segment = New Segment(heading2a)
heading2a.Segments.Add(segment2a)
heading2a.LabelWidth = 60
heading2a.IsAutoSequence = True
segment2a.Content = “this is heading of level 2”
Sec1.Paragraphs.Add(heading2a)
If you need more help, please do let us know.
Thanks.
Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html