Method TryApply
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
TryApply(CadDocument, CadEdit)
Takes an edit of one of the owner's entities: the owner records it and changes or writes its entities again in the document; or refuses it, and the document stays as it was.
bool TryApply(CadDocument document, CadEdit edit)
Parameters
documentCadDocumentThe document the entity is in.
editCadEditThe edit.
Returns
- bool
Whether the owner took the edit.