Hide Comments
Hide Comments

ParseAngle(String,Single,Boolean) Method

Comments (0)

Parses the string into an angle in radians. The value string is assumed to be in degrees. If the keyword 'grad' follows the value, the value string is converted from gradians. If the keyword 'rad' follows the value, the value string is converted from radians.

Namespace: FMX.RS.SVGUtils

expandingSyntax

Delphi

 function ParseAngle( S: String; DefValue: Single; var Automatic: Boolean ): Single; 
 

Parameters

S

Type: String

DefValue

Type: Single

Automatic

Type: Boolean

Return Value

Type: Single

expandingRemarks

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

expandingExamples

Delphi

 
 Value := ParseAngle('1.23 grad', 25, IsAutomatic);

expandingSee Also

Reference

Comments (0)

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