The short answer is: It can't be done with the current version of xceed
I submitted a ticket to xceedsoftware/docx on github and asked this question:
I understand how to create a numbered list:
using (DocX document = DocX.Create(ListSample.ListSampleOutputDirectory + @"AddList.docx"))
{
var numberedList = document.AddList("Berries", 0, ListItemType.Numbered, 1);
.
.
}
But, how do I modify the font and/or font size of the numbers? I see
the ParagraphNumberProperties property in the debugger but don't see
anything in the DocX class docs that helps
Just to be clear, I want to modify the font and font size of the
number in the list, not the text to the right of the number.
Their reply follows (i.e., you can't change the font of the numbers using the current version)
Hi,
Thank you for your suggestion.
Currently, only the font/font size of the ListItems can be set with
the Document.InsertList( List list, Font fontFamily, double fontSize )
method. We will investigate to add this feature.
Thank you.