Table of Contents

Constructor CadEdit

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CadEdit(string, CadEditKind, string, string, string)

Makes an edit of one entity.

public CadEdit(string handle, CadEditKind kind, string property = null, string oldValue = null, string newValue = null)

Parameters

handle string

The handle of the entity edited, such as "2F".

kind CadEditKind

What the edit does.

property string

The property changed, or the grip dragged; null where the kind has none.

oldValue string

The value before the edit; null where the kind has none.

newValue string

The value after the edit; null where the kind has none.

Exceptions

ArgumentNullException

Thrown when the handle is null.

ArgumentException

Thrown when the handle is empty.

ArgumentOutOfRangeException

Thrown when the kind is not one of CadEditKind.