StyleRun.Size

From Xojo Documentation

Property (As Integer )
aStyleRun.Size = newIntegerValue
or
IntegerValue = aStyleRun.Size

Supported for all project types and targets.

Gets or sets the font size of the StyleRun.

Example

This example gets the font size of the first StyleRun.

TextField1.Text = Str(TextArea1.StyledText.StyleRun(0).Size)

This example sets the font size of the first StyleRun.

TextArea1.StyledText.StyleRun(0).Size = 16