4D v13

SVG_Set_title

Home

 
4D v13
SVG_Set_title

SVG_Set_title 


 

SVG_Set_title ( parentSVGObject ; title ) -> Function result 
Parameter Type   Description
parentSVGObject  SVG_Ref in Reference of parent element
title  String in Text of title
Function result  SVG_Ref in Reference of title

The SVG_Set_title command specifies a title for the SVG element designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG element, an error is generated.

A title is text data that is not included in the rendered picture but is use for structuring complex documents. Certain SVG rendering engines use the text of this element to display a help tip when the mouse moves over the object.

Example  

 $SVG:=SVG_New
 $rec:=SVG_New_rect($SVG;20;20;650;650;0;0;"gray";"lemonchiffon")
 SVG_Set_title($rec;"Background rectangle")
 $Symbol:=SVG_Define_symbol($SVG;"MySymbol";0;0;110;110;"true")
 SVG_Set_title($Symbol;" Set a symbol composed of 2 squares and 2 circles ")
 ...

 
PROPERTIES 

Product: 4D
Theme: Structure and Definitions
Number: 65981

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: Composant 4D SVG v11.3

 
SEE ALSO 

SVG_Set_description