Initializing help system before first use

svggetstylesheet

svggetstylesheet


Purpose
Retrieve style definitions of a graphical object or object group.
Synopsis
function svggetstylesheet(gid: integer):array of text
function svggetstylesheet:array of text
function svggetstylesheet(obj: integer):array of text
Arguments
gid 
Object group ID.
obj 
Object ID.
Return value
An array of style properties ('stylesheet') with their respective values.
Example
This code retrieves the style properties of a group and applies them to an object belonging to another group.
svgaddgroup("a", "Group A")
svgaddgroup("b", "Group B")
svgaddtext("a", 20, 120, "Formatted text")
svgsetstylesheet(svggetlastobj, svggetstylesheet("b"))
Further information
This function can be used to retrieve the set of style properties ('stylesheet') of some object in order to apply it to some other object or group of objects. Use svggetstyle to retrieve individual style properties of an object or group of objects.
Related topics