Delen via


ModelItem.BeginEdit Method

When overridden in a derived class, this method is called when performing multiple operations on an object or group of objects.

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

Syntax

'Declaration
Public MustOverride Function BeginEdit As ModelEditingScope
'Usage
Dim instance As ModelItem 
Dim returnValue As ModelEditingScope 

returnValue = instance.BeginEdit()
public abstract ModelEditingScope BeginEdit()
public:
virtual ModelEditingScope^ BeginEdit() abstract
public abstract function BeginEdit() : ModelEditingScope

Return Value

Type: Microsoft.Windows.Design.Model.ModelEditingScope
A ModelEditingScope that must be either completed or reverted.

Remarks

Once an editing scope is open, all changes across all objects are saved into the scope.

Editing scopes are global to the designer. An editing scope may be created for any item in the designer. You do not have to create an editing scope for the specific item you are changing.

Editing scopes can be nested, but must be committed in order.

.NET Framework Security

See Also

Reference

ModelItem Class

ModelItem Members

BeginEdit Overload

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture