4D v13SVG_DEFINE_STYLE_WITH_ARRAYS |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
SVG_DEFINE_STYLE_WITH_ARRAYS
SVG_DEFINE_STYLE_WITH_ARRAYS
The SVG_DEFINE_STYLE_WITH_ARRAYS method defines styles (using arrays) for the SVG object designated in the svgObject. parameter.
The optional type parameter specifies the language of the style sheet for the contents of the element. The default value is "text/css". The optional media parameter indicates the desired destination media for the style information. If you omit this parameter, the default value used is "all". If the value is not included in the list of media types recognized by CSS2, an error is generated. The optional title parameter adds an attribute of the "title" type. Example of definition of internal styles: ARRAY TEXT($arrnames;0) This method generates the following code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <svg xmlns="http://www.w3.org/2000/svg"> <defs id="4D"> <style type="text/css">.title{fill:red;font-family:'Lucida Grande' Verdana;font-size:20px;text-align:center;}</style> </defs> <textArea class="title" height="310" width="200" x="10" y="10">Hello World!</textArea> </svg> Example of definition of inline styles: ARRAY TEXT($arrnames;0) This method generates the following code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <svg xmlns="http://www.w3.org/2000/svg"> <textArea height="310" style="fill:red;font-family:'Lucida Grande' Verdana;font-size:20px;text-align:center;" width="200" x="10" y="10">Hello World!</textArea> </svg> |
PROPERTIES
Product: 4D
INDEX HISTORY
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||