canDelete property
True if this element can be deleted interactively, false otherwise.
The value of InteractionConfiguration.allowDeletingSelectedElement of the current GeometryEditor.tool determines this value. The element can be deleted programmatically regardless of this value, for example using GeometryEditor.deleteSelectedElement.
A GeometryEditorMidVertex is not part of the GeometryEditor.geometry state, and therefore can never be deleted from the geometry regardless of the InteractionConfiguration settings.
Implementation
bool get canDelete {
return _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEditorElement_getCanDelete(
_handle,
errorHandler,
);
});
}