Skip to main content

HtmlDocumentExporterOptions.HtmlNumberingListExportFormat Property

Gets or sets how the lists are represented in the resulting document.

Namespace: DevExpress.XtraRichEdit.Export

Assembly: DevExpress.RichEdit.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

public HtmlNumberingListExportFormat HtmlNumberingListExportFormat { get; set; }

Property Value

Type Description
HtmlNumberingListExportFormat

A HtmlNumberingListExportFormat enumeration value specifying how the lists are exported.

Available values:

Name Description
PlainTextFormat

Uses characters to mark lists.

HtmlFormat

Uses HTML tags to mark lists.

Property Paths

You can access this nested property as listed below:

Object Type Path to HtmlNumberingListExportFormat
RichEditDocumentExportOptions
.Html .HtmlNumberingListExportFormat

Remarks

Handle the RichEditControl.BeforeExport and RichEditDocumentServer.BeforeExport event and specify the list representation - that is, whether HTML tags like <li> are used, - via the BeforeExportEventArgs.Options property of the event arguments.

The following code snippet illustrates this:

View Example

private void richEditControl_BeforeExport(object sender, DevExpress.XtraRichEdit.BeforeExportEventArgs e) {
    DevExpress.XtraRichEdit.Export.HtmlDocumentExporterOptions options = e.Options as DevExpress.XtraRichEdit.Export.HtmlDocumentExporterOptions;
    if (options != null) 
{
        options.CssPropertiesExportType = DevExpress.XtraRichEdit.Export.Html.CssPropertiesExportType.Link;
        options.HtmlNumberingListExportFormat = DevExpress.XtraRichEdit.Export.Html.HtmlNumberingListExportFormat.HtmlFormat;
        options.TargetUri = Path.GetFileNameWithoutExtension(this.fileName);
    }
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the HtmlNumberingListExportFormat property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also