Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_New_line
|
SVG_New_line ( parentSVGObject ; startX ; startY ; endX ; endY {; color {; strokeWidth}} ) -> Funktionsergebnis | ||||||||
Parameter | Typ | Beschreibung | ||||||
parentSVGObject | SVG_Ref |
![]() |
Reference of parent element | |||||
startX | Lange Ganzzahl |
![]() |
Horizontal start position | |||||
startY | Lange Ganzzahl |
![]() |
Vertical start position | |||||
endX | Lange Ganzzahl |
![]() |
Horizontal end position | |||||
endY | Lange Ganzzahl |
![]() |
Vertical end position | |||||
color | String |
![]() |
Color or gradient name | |||||
strokeWidth | Zahl |
![]() |
Line thickness | |||||
Funktionsergebnis | SVG_Ref |
![]() |
Reference of line | |||||
The SVG_New_line command creates a new line in the SVG container designated by parentSVGObject and returns its reference. The object is positioned according to the startX, startY, endX and endY coordinates. The SVG container can be the document root or any other reference to an SVG object that can contain this type of element.
The optional color parameter contains the name of the line color. (For more information about colors, please refer to the commands of the Colors and Gradients theme).
The optional strokeWidth parameter contains the pen size expressed in pixels. Its default value is 1.
Draw a blue line that is 3 pixels thick:
svgRef:=SVG_New
objectRef:=SVG_New_line(svgRef;10;10;200;100;"blue";3)
Produkt: 4D
Thema: Drawing
Nummer:
65980
Geändert: Composant 4D SVG v11.4
4D SVG ( 4D v20 R7)