even after reading this forum post, its still quite confusing how to create a bulletted list using migradoc / pdfsharp. I basically want to display a list of items like this:
- Dodge
- Nissan
- Ford
- Chevy
even after reading this forum post, its still quite confusing how to create a bulletted list using migradoc / pdfsharp. I basically want to display a list of items like this:
A little bit more concise than the above answer:
Style is only created once, including listinfo, and can be re-used everywhere.
With PDFsharp you must draw the bullets yourself.
With MigraDoc you add a paragraph and set paragraph.Format.ListInfo for this paragraph to create a bullet list.
The linked thread shows two helper routines: DefineList() only sets a member variable so next time a new list will be created. AddToList() is called for each entry.
Simply call DefineList() to start a new bullet list, then call AddToList() for every entry. DefineList() makes a big difference for numbered lists.
Adapt the helper routines for your needs.
Here's a sample (a few lines added to the HelloWorld sample):
I didn't use the AddToList method to have it all in one place. In a real application I'd use that method (it's a user-defined method, code given in this thread).