Share via


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
'Usage
Dim instance As ModelEditingScope

instance.Revert()
public void Revert()
public:
void Revert()
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

ModelEditingScope Members

Microsoft.Windows.Design.Model Namespace

Other Resources

Walkthrough: Creating a Design-time Adorner

WPF Designer Extensibility