Distinguishing Delete from Cut command

Hi Walter,
is it possible to Identify a delete operation from a cut operation within “selectionDeleting” event handler ?

regards,
Manoj Kumar Lakshman

I can’t find a clean way that just involves state in SelectionDeleting. There is a transaction active in both cases, but the transaction doesn’t get a name until the FinishTransaction.

but… GoView has

public virtual void EditDelete()
public virtual void EditCut()

which you could override and add state to the view… and this would help you also distinguish those other SelectionDeleting events that involve dragging.

e.g.

public override void EditCut() {
this.myDeletingState = “cut”;
base.EditCut();
this.myDeletingState = “”;
}

@dreamweiver, are you sure that you are asking a question about GoDiagram rather than about GoJS?