Table of Contents

Operator implicit operator

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

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

value string

Returns

XUnit

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

value int

Returns

XUnit

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

value double

Returns

XUnit

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

value XUnit

Returns

double