LinkExportMode
MarkdownSaveOptions.LinkExportMode property
Specifica come i collegamenti verranno scritti nel file di output. Il valore predefinito èAuto .
public MarkdownLinkExportMode LinkExportMode { get; set; }
Esempi
Mostra come i collegamenti verranno scritti nel file .md.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertShape(ShapeType.Balloon, 100, 100);
// L'immagine verrà scritta come riferimento:
// ![ref1]
//
// [ref1]: aw_ref.001.png
MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();
saveOptions.LinkExportMode = MarkdownLinkExportMode.Reference;
doc.Save(ArtifactsDir + "MarkdownSaveOptions.LinkExportMode.Reference.md", saveOptions);
// L'immagine verrà scritta in linea:
// 
saveOptions.LinkExportMode = MarkdownLinkExportMode.Inline;
doc.Save(ArtifactsDir + "MarkdownSaveOptions.LinkExportMode.Inline.md", saveOptions);
Guarda anche
- enum MarkdownLinkExportMode
- class MarkdownSaveOptions
- spazio dei nomi Aspose.Words.Saving
- assemblea Aspose.Words