ExportAsHtml
MarkdownSaveOptions.ExportAsHtml property
Ermöglicht die Angabe der Elemente, die als reines HTML nach Markdown exportiert werden sollen. Der Standardwert istNone .
public MarkdownExportAsHtml ExportAsHtml { get; set; }
Beispiele
Zeigt, wie eine Tabelle als reines HTML nach Markdown exportiert wird.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("Sample table:");
// Tabelle erstellen.
builder.InsertCell();
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
builder.Write("Cell1");
builder.InsertCell();
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.Write("Cell2");
MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.ExportAsHtml = MarkdownExportAsHtml.Tables;
doc.Save(ArtifactsDir + "MarkdownSaveOptions.ExportTableAsHtml.md", saveOptions);
Siehe auch
- enum MarkdownExportAsHtml
- class MarkdownSaveOptions
- namensraum Aspose.Words.Saving
- Montage Aspose.Words