UpdateAmbiguousTextFont
SaveOptions.UpdateAmbiguousTextFont property
Determina se gli attributi del font verranno modificati in base al codice carattere utilizzato.
public bool UpdateAmbiguousTextFont { get; set; }
Esempi
Mostra come aggiornare il font in modo che corrisponda al codice carattere utilizzato.
Document doc = new Document(MyDir + "Special symbol.docx");
Run run = doc.FirstSection.Body.FirstParagraph.Runs[0];
Console.WriteLine(run.Text); // ฿
Console.WriteLine(run.Font.Name); // Arial
OoxmlSaveOptions saveOptions = new OoxmlSaveOptions();
saveOptions.UpdateAmbiguousTextFont = true;
doc.Save(ArtifactsDir + "OoxmlSaveOptions.UpdateAmbiguousTextFont.docx", saveOptions);
doc = new Document(ArtifactsDir + "OoxmlSaveOptions.UpdateAmbiguousTextFont.docx");
run = doc.FirstSection.Body.FirstParagraph.Runs[0];
Console.WriteLine(run.Text); // ฿
Console.WriteLine(run.Font.Name); // Angsana Nuovo
Guarda anche
- class SaveOptions
- spazio dei nomi Aspose.Words.Saving
- assemblea Aspose.Words