Table of Contents

Method Angle

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Angle(string, double, CadDocument, Func<double, string>)

Makes a row for an angle, written and read in the drawing's angle units, AUNITS and AUPREC: 90 degrees is "90" in decimal degrees to no places, and "90d0'0"" in degrees, minutes and seconds. The value is in radians from the X axis. Text that does not read is refused with "<label> is a number." and the setter is not called.

public static CadPropertyRow Angle(string label, double radians, CadDocument document, Func<double, string> setter)

Parameters

label string

The label.

radians double

The angle, in radians.

document CadDocument

The drawing whose units the row follows; read when the row is made.

setter Func<double, string>

What changes the value, given the angle in radians; null for a row that is only read.

Returns

CadPropertyRow

The row.

Exceptions

ArgumentNullException

Thrown when the document is null.