Next: , Previous: BLOX.BText-accessing, Up: BLOX.BText


1.42.4 BLOX.BText: attributes

insertAtEnd: aString attribute: attr
Clear the selection and append aString at the end of the widget. Use the given attributes to format the text.


insertText: aString attribute: attr
Insert aString in the widget at the current insertion point, replacing the currently selected text (if any). Use the given attributes to format the text.


removeAttributes
Remove any kind of formatting from the text in the widget


removeAttributesFrom: aPoint to: endPoint
Remove any kind of formatting from the text in the widget between the given endpoints. The two endpoints are Point objects in which both coordinates are 1-based: the first line is line 1, and the first character in the first line is character 1.


setAttributes: attr from: aPoint to: endPoint
Add the formatting given by attr to the text in the widget between the given endpoints. The two endpoints are Point objects in which both coordinates are 1-based: the first line is line 1, and the first character in the first line is character 1.