Parses the input string for a text anchor value, which is used to align (start-, middle- or end-alignment) a string of text relative to a given point.
The allowable values are start | middle | end | inherit
Namespace: FMX.RS.SVGUtils
Delphi |
function ParseTextAnchor( S: String; DefValue: TSVGTextAlign; var Inherits: Boolean ): TSVGTextAlign; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: TSVGTextAlign
Default Value. If the string is empty, the default value is returned
Inherits
Type: Boolean
Set to True when the input string contains 'inherit' keyword
Type: TSVGTextAlign
If the string is blank, the function returns the default value ( DefValue). If the string contains 'inherits', the function returns the default value and sets the Inherits parameter to true. |
Reference |