Table of Contents

Class CadEditRecord

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

One small record of an edit: which entity, what was done to it and, for a property, its value before and after, as text. An undo step is a list of these. They say what changed, so that the canvas draws again only the spaces touched and an owner of an entity can recognise an edit of its own; what the drawing was before is kept by the document whole (see Undo()), so the records never need to be enough to undo an edit by themselves.

public sealed class CadEditRecord
Inheritance
CadEditRecord
Inherited Members

Constructors

CadEditRecord(CadEditRecordKind, string, string, string, string)

Makes a record.

Properties

Handle

Gets the handle of the entity, or null for an edit of a table or a setting.

Kind

Gets what the edit does.

NewValue

Gets the value after, as text, or null.

OldValue

Gets the value before, as text, or null.

Property

Gets the name of the property set, or null.

Space

Gets the name of the space the entity is in ("Model", or a layout's name), filled in by the document when the edit is applied; null for an edit of a table or a setting, and for an entity inside a block.

Methods

ToString()