text:set-string
List of: Scheme Extensions
Subjects: Text
Contents: Kernel

Action: Sets a text entity's string.

Filename: kern/kern_scm/text_scm.cxx

Syntax: (text:set-string text-entity string)

Arg Types: text-entity text

string string

Returns: text


text-entity specifies a text entity.


string, which is enclosed in quotes, specifies the text string to be displayed by a text-entity.

Example: ; text:set-string

; Create a text entity.

(define words (text


(position 0 0 0) "Hello World."


"times-medium-r-normal" 30))

;; words

; Set the string of the text entity.

(define string


(text:set-string words "Hello Universe!"))

;; string
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0029.HTM