Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_SET_ID
|
SVG_SET_ID ( svgObject ; id ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
id | String |
![]() |
ID to assign to object | |||||
The SVG_SET_ID command can be used to set the ‘ID’ property of the SVG object having the svgObject reference. If this attribute already exists, its value is replaced by the value passed in the parameter.
The object id is used to reference an object. This reference will then be recovered using the SVG_Get_ID command. The id is also used by the 4D SVG Find element ID by coordinates command (see the 4D documentation).
$svg:=SVG_New
$object:=SVG_New_rect($svg;10;10;200;200;0;0;"black";" white";2)
SVG_SET_ID($object;"border")
Produkt: 4D
Thema: Attributes
Nummer:
65933
Erstellt: Composant 4D SVG v11.3
4D SVG ( 4D v20 R7)