Edit

Share via


ModelItem.BeginEdit Method

Definition

Opens an editing scope for the designer.

Overloads

BeginEdit()

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

BeginEdit(Boolean)

Opens an editing scope for the designer.

BeginEdit(String)

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

BeginEdit(String, Boolean)

Opens an editing scope for the designer.

BeginEdit()

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

public:
 abstract System::Activities::Presentation::Model::ModelEditingScope ^ BeginEdit();
public abstract System.Activities.Presentation.Model.ModelEditingScope BeginEdit ();
abstract member BeginEdit : unit -> System.Activities.Presentation.Model.ModelEditingScope
Public MustOverride Function BeginEdit () As ModelEditingScope

Returns

A ModelEditingScope, which must be either completed or reverted.

Remarks

An editing scope allows multiple changes to the model to be applied as a single transaction. All of the changes made within the editing scope can be reverted at any time before the transaction is completed.

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

Applies to

BeginEdit(Boolean)

Opens an editing scope for the designer.

public:
 virtual System::Activities::Presentation::Model::ModelEditingScope ^ BeginEdit(bool shouldApplyChangesImmediately);
public virtual System.Activities.Presentation.Model.ModelEditingScope BeginEdit (bool shouldApplyChangesImmediately);
abstract member BeginEdit : bool -> System.Activities.Presentation.Model.ModelEditingScope
override this.BeginEdit : bool -> System.Activities.Presentation.Model.ModelEditingScope
Public Overridable Function BeginEdit (shouldApplyChangesImmediately As Boolean) As ModelEditingScope

Parameters

shouldApplyChangesImmediately
Boolean

true to indicate that the changes should be applied immediately; otherwise, false.

Returns

A ModelEditingScope, which must be either completed or reverted.

Applies to

BeginEdit(String)

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

public:
 abstract System::Activities::Presentation::Model::ModelEditingScope ^ BeginEdit(System::String ^ description);
public abstract System.Activities.Presentation.Model.ModelEditingScope BeginEdit (string description);
abstract member BeginEdit : string -> System.Activities.Presentation.Model.ModelEditingScope
Public MustOverride Function BeginEdit (description As String) As ModelEditingScope

Parameters

description
String

An optional description of the change. This will be set into the Description property of the editing scope.

Returns

A ModelEditingScope, which must be either completed or reverted.

Remarks

An editing scope allows multiple changes to the model to be applied as a single transaction. All of the changes made within the editing scope can be reverted at any time before the transaction is completed.

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

Applies to

BeginEdit(String, Boolean)

Opens an editing scope for the designer.

public:
 virtual System::Activities::Presentation::Model::ModelEditingScope ^ BeginEdit(System::String ^ description, bool shouldApplyChangesImmediately);
public virtual System.Activities.Presentation.Model.ModelEditingScope BeginEdit (string description, bool shouldApplyChangesImmediately);
abstract member BeginEdit : string * bool -> System.Activities.Presentation.Model.ModelEditingScope
override this.BeginEdit : string * bool -> System.Activities.Presentation.Model.ModelEditingScope
Public Overridable Function BeginEdit (description As String, shouldApplyChangesImmediately As Boolean) As ModelEditingScope

Parameters

description
String

An optional description of the change. This will be set into the Description property of the editing scope.

shouldApplyChangesImmediately
Boolean

true to indicate that the changes should be applied immediately; otherwise, false.

Returns

A ModelEditingScope, which must be either completed or reverted.

Applies to