Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_APPEND_TEXT_TO_TEXTAREA
|
SVG_APPEND_TEXT_TO_TEXTAREA ( svgObject ; addedText ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
svgObject | SVG_Ref |
![]() |
Reference of text element | |||||
addedText | Text |
![]() |
Text to be added | |||||
The SVG_APPEND_TEXT_TO_TEXTAREA command is used to append text to the textual content of the text object designated by svgObject. If svgObject is not a "textArea" object, an error is generated.
Line return characters are automatically replaced by "<tbreak/>" elements.
Adding the following text:
//Display outlines using 'rect' element
$Dom_rect:=SVG_New_rect($Dom_SVG;10;10;500;200;0;0;"blue:50";"none")
//Creating the text
$Dom_text:=SVG_New_textArea($Dom_SVG;"It is today, ";10;30;500;200;"'Arial'";36;0;3)
//Adding the date and 2 CR
SVG_APPEND_TEXT_TO_TEXTAREA($Dom_text;String(Current date)+"\r\r")
//Lastly, adding the current time
SVG_APPEND_TEXT_TO_TEXTAREA($Dom_text;"and it was exactly "+String(Current time))
Produkt: 4D
Thema: Text
Nummer:
65883
Erstellt: 4D v12
4D SVG ( 4D v20 R7)