StyleRun.FontName

From Xojo Documentation

Property (As String )
aStyleRun.FontName = newStringValue
or
StringValue = aStyleRun.FontName

New in 2019r2

Supported for all project types and targets.

Gets or sets the Font of the StyleRun.

Examples

This example gets the font of the first StyleRun.

TextField2.Text = TextArea1.StyledText.StyleRun(0).FontName

This example sets the font of the first styleRun.

TextArea1.StyledText.StyleRun(0).FontName = "Helvetica"