SVG_SET_ATTRIBUTES

4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next

version 11.3


SVG_SET_ATTRIBUTES (svgObject; attributeName; attributeValue{; attributeName2; attributeValue2; ...; attributeNameN; attributeValueN})

ParameterTypeDescription
svgObjectSVG_RefReference of SVG element
attributeNameStringName of attribute to set
attributeValueStringValue of attribute

Description

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")

See Also

SVG_GET_ATTRIBUTES, SVG_SET_ATTRIBUTES_BY_ARRAYS.


4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next