4D v14

SVG_SET_ATTRIBUTES

Home

 
4D v14
SVG_SET_ATTRIBUTES

SVG_SET_ATTRIBUTES 


 

SVG_SET_ATTRIBUTES ( svgObject ; attributeName ; attributeValue {; attributeName2 ; attributeValue2 ; ... ; attributeNameN ; attributeValueN} ) 
Parameter Type   Description
svgObject  SVG_Ref in Reference of SVG element
attributeName  String in Name of attribute to set
attributeValue  String in Value of attribute

The SVG_SET_ATTRIBUTES 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 are replaced by those passed as parameters.

The attributes and their values are passed as paired parameters.

Example  

 $svg:=SVG_New
 $object:=SVG_New_rect($svg;10;10;200;200;0;0;"black";"white";2)
 SVG_SET_ATTRIBUTES($object;"style";"fill:red; stroke:blue; stroke-width:3")

 
PROPERTIES 

Product: 4D
Theme: Attributes
Number: 65942

 
HISTORY 

Created: Composant 4D SVG v11.3

 
SEE ALSO 

SVG_GET_ATTRIBUTES
SVG_SET_ATTRIBUTES_BY_ARRAYS

 
ARTICLE USAGE

4D SVG Component ( 4D v13)
4D SVG Component ( 4D v12)
4D SVG Component ( Composant 4D SVG v11.4)
4D SVG Component ( 4D v14 R2)
4D SVG Component ( 4D v14)
4D SVG Component ( 4D v14 R3)
4D SVG Component ( 4D v14 R4)