GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / DeleteSelection Method
The collection of objects to be deleted; if null, this view's Selection is used.
In This Topic
    DeleteSelection Method
    In This Topic
    Delete a collection of objects.
    Syntax
    public virtual void DeleteSelection( 
       GoSelection sel
    )

    Parameters

    sel
    The collection of objects to be deleted; if null, this view's Selection is used.
    Remarks
    This method heeds the CanDeleteObjects property if sel is this view's Selection, and it heeds each object's CanDelete property as well. All actions take place within a GoUndoManager.GoUndoManager.DeleteSelectionName transaction. This method also calls RaiseSelectionDeleting, RaiseSelectionStarting, RaiseSelectionFinished, and RaiseSelectionDeleted.
    See Also