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
handlestringThe handle of the entity edited, such as "2F".
kindCadEditKindWhat the edit does.
propertystringThe property changed, or the grip dragged; null where the kind has none.
oldValuestringThe value before the edit; null where the kind has none.
newValuestringThe 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.