4D v14

SVG_SET_ID

Home

 
4D v14
SVG_SET_ID

SVG_SET_ID 


 

SVG_SET_ID ( svgObject ; id ) 
Parameter Type   Description
svgObject  SVG_Ref in Reference of SVG element
id  String in 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).

Example  

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

 
PROPERTIES 

Product: 4D
Theme: Attributes
Number: 65933

 
HISTORY 

Created: Composant 4D SVG v11.3

 
SEE ALSO 

SVG_Find_ID
SVG_Get_ID

 
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)