PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Testing list continuations https://forum.pdfsharp.net/viewtopic.php?f=2&t=2440 |
Page 1 of 1 |
Author: | benfosterdev [ Mon May 13, 2013 9:36 am ] |
Post subject: | Testing list continuations |
Hey guys, I'm writing some tests to verify that a new list does not continue a previous list. How can I access a list item's number? |
Author: | Thomas Hoevel [ Mon May 13, 2013 11:05 am ] |
Post subject: | Re: Testing list continuations |
Hi! I presume items are being counted only when the list is being rendered. The DOM is dynamic and items can inserted or removed anywhere. |
Author: | benfosterdev [ Mon May 13, 2013 1:51 pm ] |
Post subject: | Re: Testing list continuations |
So it's not actually possible to check the number (e.g. "4. I am a list item") of an item in a numbered list? I'd assumed you were storing this within the ListInfo object for each paragraph. |
Author: | Thomas Hoevel [ Mon May 13, 2013 2:00 pm ] |
Post subject: | Re: Testing list continuations |
Each ListInfo item has a boolean property ContinuePreviousList. Numbers are not stored. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |