SVG_Set_title

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

version 11.3


SVG_Set_title (parentSVGObject; title) SVG_Ref

ParameterTypeDescription
parentSVGObjectSVG_RefReference of parent element
titleStringText of title
Function resultSVG_RefReference of title

Description

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

See Also

SVG_Set_description.


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