ExportListLabels Enumeration |
Specifies how list labels are exported to HTML, MHTML and EPUB.
Namespace:
Aspose.Words.Saving
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum ExportListLabels
Public Enumeration ExportListLabels
public enum class ExportListLabels
Members|
| Member name | Value | Description |
|---|
| Auto | 0 |
Outputs list labels in auto mode. Uses HTML native elements when possible.
|
| AsInlineText | 1 |
Outputs all list labels as inline text.
|
| ByHtmlTags | 2 |
Outputs all list labels as HTML native elements.
|
Remarks
ExamplesShows how to export an indented list to .html as plain text.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Aspose.Words.Lists.List list = doc.Lists.Add(ListTemplate.NumberDefault);
builder.ListFormat.List = list;
builder.Writeln("List item 1.");
builder.ListFormat.ListIndent();
builder.Writeln("List item 2.");
builder.ListFormat.ListIndent();
builder.Write("List item 3.");
HtmlSaveOptions options = new HtmlSaveOptions
{
ExportListLabels = ExportListLabels.AsInlineText,
PrettyFormat = true
};
doc.Save(ArtifactsDir + "HtmlSaveOptions.List.html", options);
See Also