highlight_color property

Font.highlight_color property

Gets or sets the highlight (marker) color.

@property
def highlight_color(self) -> aspose.pydrawing.Color:
    ...

@highlight_color.setter
def highlight_color(self, value: aspose.pydrawing.Color):
    ...

Examples

Shows how to format a run of text using its font property.

doc = aw.Document()
run = aw.Run(doc=doc, text='Hello world!')
font = run.font
font.name = 'Courier New'
font.size = 36
font.highlight_color = aspose.pydrawing.Color.yellow
doc.first_section.body.first_paragraph.append_child(run)
doc.save(file_name=ARTIFACTS_DIR + 'Font.CreateFormattedRun.docx')

See Also