public void ControlListLabelsExportToHtml()
{
Document doc = new Document(MyDir + "Lists.PrintOutAllLists.doc");
HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.Html);
// This option uses <ul> and <ol> tags are used for list label representation if it doesn't cause formatting loss,
// otherwise HTML <p> tag is used. This is also the default value.
saveOptions.ExportListLabels = ExportListLabels.Auto;
doc.Save(MyDir + @"\Artifacts\Document.ExportListLabels Auto.html", saveOptions);
// Using this option the <p> tag is used for any list label representation.
saveOptions.ExportListLabels = ExportListLabels.AsInlineText;
doc.Save(MyDir + @"\Artifacts\Document.ExportListLabels InlineText.html", saveOptions);
// The <ul> and <ol> tags are used for list label representation. Some formatting loss is possible.
saveOptions.ExportListLabels = ExportListLabels.ByHtmlTags;
doc.Save(MyDir + @"\Artifacts\Document.ExportListLabels HtmlTags.html", saveOptions);
}