Class CadEdit
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
One edit of one entity, as the presenter hands it to the entity's owner (TryApply(CadDocument, CadEdit)) before it changes anything: which entity, what kind of edit, which property, and the values before and after.
public sealed class CadEdit
- Inheritance
-
CadEdit
- Inherited Members
Remarks
A mark of handle 2F moved 10 to the right is new CadEdit("2F", CadEditKind.Move, newValue: "10,0"); its layer
changed from Mark to Notes in Properties is new CadEdit("2F", CadEditKind.Property, "Layer", "Mark", "Notes").
CadEditKind says what each kind's values hold. An edit does not change once made.
Constructors
- CadEdit(string, CadEditKind, string, string, string)
Makes an edit of one entity.
Properties
- Handle
Gets the handle of the entity edited.
- Kind
Gets what the edit does.
- NewValue
Gets the value after the edit; null where the kind has none.
- OldValue
Gets the value before the edit; null where the kind has none.
- Property
Gets the property changed, or the index of the grip dragged; null where the kind has none.
Methods
- ToString()
Gives the edit as a line for debugging.