StyleRun.Font
From Xojo Documentation
This item was deprecated in version 2019r2. Please use StyleRun.FontName as a replacement. |
Property (As String )
aStyleRun.Font = newStringValue
or
StringValue = aStyleRun.Font
Supported for all project types and targets.
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"