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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

List Styling

Thread ID:





88113 Jul 15,2009 01:29 PM UTC Jul 22,2009 07:29 PM UTC WinForms 3
Tags: DocIO
Steve Platz
Asked On July 15, 2009 01:29 PM UTC

I am trying to format a list within a Word document that I'm generating. The list numbers should be a 0 margin and all text should be indented. I'm using the following code:

ListStyle bulStyle = Document.AddListStyle(ListType.Numbered, "NumberedStyle");
WListLevel bulLevel1 = bulStyle.Levels[0];
bulLevel1.TextPosition = 0f;
bulLevel1.TabSpaceAfter = 20f;
bulLevel1.CharacterFormat.FontName = "Arial";
bulLevel1.CharacterFormat.FontSize = 10f;
bulLevel1.ParagraphFormat.AfterSpacing = 10f;

What I'm seeing is:

1. some text would be here and it would
wrap like this.

What I would like to do is:

1. some text would be here and it would
wrap like this

Is this possible? I tried using the built in styles and it did the same thing.

Steve Platz
Replied On July 15, 2009 01:32 PM UTC

The example in the post above is wrong. All formatting was stripped. It should have been (a dash - is a space):

What I'm seeing:


What I would like:


Vijayakumar S [Syncfusion]
Replied On July 17, 2009 09:20 AM UTC

Hi Steve,

Thank you for posting your query.

Yes this is possible in Essential DocIO. We have prepared a sample, which will show how to create a list as you expected. Please look into the sample and let us know if this helps.


Please let me know if you have any questions.


Steve Platz
Replied On July 22, 2009 07:29 PM UTC

That worked. Thanks!


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon