Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_SET_ATTRIBUTES_BY_ARRAYS
|
SVG_SET_ATTRIBUTES_BY_ARRAYS ( svgObject ; namesArrayPointer ; valuesArrayPointer ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
namesArrayPointer | Zeiger |
![]() |
Names of attributes | |||||
valuesArrayPointer | Zeiger |
![]() |
Synchronized values of attributes | |||||
The SVG_SET_ATTRIBUTES_BY_ARRAYS command can be used to assign one or more custom attributes to an SVG object having the svgObject reference. If one or more of these attributes already exist, their values will be replaced by those passed as parameters.
The attributes and their values are passed using two arrays, to which namesArrayPointer and valuesArrayPointer point.
$svg:=SVG_New
$object:=SVG_New_rect($svg;10;10;200;200;0;0;"black";"white";2)
ARRAY TEXT($attributes;0)
ARRAY TEXT($values;0)
APPEND TO ARRAY($attributes;"fill")
APPEND TO ARRAY($values;"red")
APPEND TO ARRAY($attributes;"stroke")
APPEND TO ARRAY($values;"blue")
APPEND TO ARRAY($attributes;"stroke-width")
APPEND TO ARRAY($values;"3")
SVG_SET_ATTRIBUTES_BY_ARRAYS($object;->$attributes;->$values)
Produkt: 4D
Thema: Attributes
Nummer:
65941
Erstellt: Composant 4D SVG v11.3
4D SVG ( 4D v20 R7)