We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

ListStyles

I am trying to create a ListStyle that is able to align the list item text when the item text spans multiple lines.

ListStyle listStyle = null;
listStyle = (ListStyle)document.AddListStyle(ListType.Bulleted, "StyleName");
listStyle.Levels[0].TabSpaceAfter = 18F;
listStyle.Levels[0].TextPosition = 18F;

and then I apply this style to the paragraph like this:

para = section.AddParagraph();
para.ListFormat.ApplyStyle("li");
para.AppendText("Item Text");

I think this should work, but it doesn't. Is there a problem with this functionality, and if not, what is the proper way to align the text.

thanks,


1 Reply

BP Bhuvaneswari P Syncfusion Team January 27, 2009 10:10 AM UTC

Hi John,

Thank you for your interest in Syncfusion products.

We have updated regarding this in your Direct Trac incident 53061. Please follow up it.

Best Regards,
Bhuvana



Loader.
Live Chat Icon For mobile
Up arrow icon