StyledText.Bold

From Xojo Documentation

Method

StyledText.Bold(Start as Integer, Length as Integer) As Boolean

Supported for all project types and targets.

Gets or sets the Bold style to the selected text in Text.

Notes

Start is the starting position in Text. Start starts at zero. The default value for Length is 1. Returns a Boolean. Use assignment syntax to set the value.

Example

Bold some text in a TextArea:

TextArea1.StyledText.Value = "Hello, World!"
TextArea1.StyledText.Bold(7, 5) = True // "World" is now bold