HighlightColor

Font.HighlightColor property

Obtiene o establece el color de resaltado (marcador).

public Color HighlightColor { get; set; }

Ejemplos

Muestra cómo dar formato a una serie de texto usando su propiedad de fuente.

Document doc = new Document();
Run run = new Run(doc, "Hello world!");

Aspose.Words.Font font = run.Font;
font.Name = "Courier New";
font.Size = 36;
font.HighlightColor = Color.Yellow;

doc.FirstSection.Body.FirstParagraph.AppendChild(run);
doc.Save(ArtifactsDir + "Font.CreateFormattedRun.docx");

Ver también