Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R8
SVG_SET_DIMENSIONS
|
SVG_SET_DIMENSIONS ( svgObject ; width {; height {; unit}} ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
width | Lange Ganzzahl |
![]() |
Dimension on the X axis | |||||
height | Lange Ganzzahl |
![]() |
Dimension on the Y axis | |||||
unit | String |
![]() |
Unit of measurement | |||||
The SVG_SET_DIMENSIONS command can be used to set the dimensions for the SVG object having the svgObject reference. If these attributes already exist, their values are replaced by those passed as parameters.
If the unit parameter is passed, it will be used. The expected values are: px, pt, pc, cm, mm, in, em, ex or %. An incorrect unit value generates an error. If the parameter is omitted, the values of the width and height parameters are expected in the user coordinate system.
$svg :=SVG_New ` Create a new document
$object:=SVG_New_rect($svg;10;10;200;200;0;0;"black";"white";2)
SVG_SET_DIMENSIONS($object;-1;400) `New height
Produkt: 4D
Thema: Attributes
Nummer:
65936
Geändert: Composant 4D SVG v11.4
4D SVG ( 4D v20 R8)