StyleRun.Font

From Xojo Documentation

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

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).Font

This example sets the font of the first styleRun.

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