SvgAngle Class
https://svgwg.org/svg2-draft/types.html#InterfaceSVGAngle
public sealed class SvgAngleProperties
| Name | Description |
|---|---|
| UnitType | Gets the type of the unit of the angle, one of the SVG_ANGLETYPE_* constants. |
| Value | Gets or sets the value of the angle, in degrees. |
| ValueAsString | Gets or sets the serialized angle, e.g. 45deg; setting an invalid angle throws a SyntaxError. |
| ValueInSpecifiedUnits | Gets or sets the value of the angle in its own unit. |
UnitType
SvgValues.csGets the type of the unit of the angle, one of the SVG_ANGLETYPE_* constants.
public ushort UnitType { get; }Property value
See also
Value
SvgValues.csGets or sets the value of the angle, in degrees.
public float Value { get; set; }ValueAsString
SvgValues.csGets or sets the serialized angle, e.g. 45deg; setting an invalid angle throws a SyntaxError.
public string ValueAsString { get; set; }Property value
See also
ValueInSpecifiedUnits
SvgValues.csGets or sets the value of the angle in its own unit.
public float ValueInSpecifiedUnits { get; set; }Methods
| Name | Description |
|---|---|
| ConvertToSpecifiedUnits(ushort) | Converts the value of the angle to the given unit type, preserving the angle. |
| NewValueSpecifiedUnits(ushort, float) | Sets the unit type and the value in that unit of the angle. |
ConvertToSpecifiedUnits(ushort)
SvgValues.csConverts the value of the angle to the given unit type, preserving the angle.
NewValueSpecifiedUnits(ushort, float)
SvgValues.csConstants
| Name | Description |
|---|---|
| SvgAngleTypeDeg | An angle in degrees. |
| SvgAngleTypeGrad | An angle in gradians. |
| SvgAngleTypeRad | An angle in radians. |
| SvgAngleTypeUnknown | The unit is not one of the predefined units. |
| SvgAngleTypeUnspecified | An angle without unit, in degrees. |
SvgAngleTypeDeg
An angle in degrees.
public const ushort SvgAngleTypeDeg = 2SvgAngleTypeGrad
An angle in gradians.
public const ushort SvgAngleTypeGrad = 4SvgAngleTypeRad
An angle in radians.
public const ushort SvgAngleTypeRad = 3SvgAngleTypeUnknown
The unit is not one of the predefined units.
public const ushort SvgAngleTypeUnknown = 0SvgAngleTypeUnspecified
An angle without unit, in degrees.
public const ushort SvgAngleTypeUnspecified = 1