ExportUnderlineFormatting

MarkdownSaveOptions.ExportUnderlineFormatting property

Hämtar eller ställer in ett booleskt värde som anger att antingen understruken textformatering ska exporteras som en sekvens av två plustecken “++”. Standardvärdet ärfalsk .

public bool ExportUnderlineFormatting { get; set; }

Exempel

Visar hur man exporterar understrykningsformatering som ++.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.Underline = Underline.Single;
builder.Write("Lorem ipsum. Dolor sit amet.");

MarkdownSaveOptions saveOptions = new MarkdownSaveOptions() { ExportUnderlineFormatting = true };
doc.Save(ArtifactsDir + "MarkdownSaveOptions.ExportUnderlineFormatting.md", saveOptions);

Se även