SVG_SET_ID

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

version 11.3


SVG_SET_ID (svgObject; id)

ParameterTypeDescription
svgObjectSVG_RefReference of SVG element
idStringID to assign to object

Description

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

Example

   $svg:=SVG_New
   $object:=SVG_New_rect ($svg; 10; 10; 200; 200; 0; 0; "black";" white"; 2)
   SVG_SET_ID ($object; "border")

See Also

SVG_Find_ID, SVG_Get_ID.


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