ModelEditingScope.Revert Method

Abandons the changes that were made during the editing scope.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub Revert
public void Revert()
public:
void Revert()
member Revert : unit -> unit 
public function Revert()

Exceptions

Exception Condition
InvalidOperationException

ModelEditingScope has already been committed.

Remarks

If the group has already been committed or aborted, this will throw an InvalidOperationException. Calling the Revert method calls the protected the OnRevert method with false for the finalizing parameter.

.NET Framework Security

See Also

Reference

ModelEditingScope Class

Microsoft.Windows.Design.Model Namespace

Other Resources

Walkthrough: Creating a Design-time Adorner

WPF Designer Extensibility