Operator implicit operator
implicit operator XUnit(string)
Converts a string to an XUnit object. If the string contains a suffix like 'cm' or 'in' the object will be converted to the appropriate type, otherwise point is assumed.
public static implicit operator XUnit(string value)
Parameters
valuestring
Returns
implicit operator XUnit(int)
Converts an int to an XUnit object with type set to point.
[Obsolete("In PDFsharp 6.1 implicit conversion from int is marked obsolete, because it led to misunderstandings and unexpected behavior. Provide the unit by XUnit.FromPoint() or use the new class XUnitPt instead.")]
public static implicit operator XUnit(int value)
Parameters
valueint
Returns
implicit operator XUnit(double)
Converts a double to an XUnit object with type set to point.
[Obsolete("In PDFsharp 6.1 implicit conversion from double is marked obsolete, because it led to misunderstandings and unexpected behavior. Provide the unit by XUnit.FromPoint() or use the new class XUnitPt instead.")]
public static implicit operator XUnit(double value)
Parameters
valuedouble
Returns
implicit operator double(XUnit)
Converts an XUnit object to a double value as point.
[Obsolete("In PDFsharp 6.1 implicit conversion to double is marked obsolete, because it led to misunderstandings and unexpected behavior. Use the XUnit.Point property instead.")]
public static implicit operator double(XUnit value)
Parameters
valueXUnit
Returns
- double