Hide Comments
Hide Comments

ParseMarkerUnit(String,TSVGMarkerUnit) Method

Comments (0)

Parses the input string for a marker unit value, which defines the coordinate system for attributes ‘markerWidth’, ‘ markerHeight’ and the contents of the ‘marker’.

The allowable values are strokeWidth | userSpaceOnUse

Namespace: FMX.RS.SVGUtils

expandingSyntax

Delphi

 function ParseMarkerUnit( S: String; DefValue: TSVGMarkerUnit ): TSVGMarkerUnit;
 

Parameters

S

Type: String

DefValue

Type: TSVGMarkerUnit

Return Value

Type: TSVGMarkerUnit

expandingRemarks

If the string is empty, the default value (DefValue) is returned.

If markerUnits="strokeWidth", ‘markerWidth’, ‘markerHeight’ and the contents of the ‘marker’ represent values in a coordinate system which has a single unit equal the size in user units of the current stroke width (see the ‘stroke-width’ property) in place for the graphic object referencing the marker.

If markerUnits="userSpaceOnUse", ‘markerWidth’, ‘markerHeight’ and the contents of the ‘marker’ represent values in the current user coordinate system in place for the graphic object referencing the marker (i.e., the user coordinate system for the element referencing the ‘marker’ element via a ‘marker’, ‘ marker-start’, ‘marker-mid’ or ‘marker-end’ property).

If attribute ‘markerUnits’ is not specified, then the effect is as if a value of 'strokeWidth' were specified.

expandingSee Also

Reference

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2015, Thomas G. Grubb