IDesignerHost.CreateTransaction Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a DesignerTransaction that can encapsulate event sequences to improve performance and enable undo and redo support functionality.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

DesignerTransaction CreateTransaction()

Return Value

Type: System.ComponentModel.Design.DesignerTransaction

A new instance of DesignerTransaction. When you complete the steps in your transaction, you should call Commit on this object.

This method creates a DesignerTransaction that can be used to encapsulate a series of operations. Designer transactions can improve performance, reduce flicker caused by multiple updates during a process of operations, and enable most operations to be undone.

Lengthy operations that involve multiple components can raise many events. These events can cause side effects, such as flicker or degraded performance. When operating on multiple components at one time, or setting multiple properties on a single component, you can improve performance by performing these changes within a transaction. Some operations handle the TransactionOpening and TransactionClosed events and perform work only when a transaction is not in progress. For more information on using transactions, see the documentation for DesignerTransaction.

.NET Framework
Available since 1.1
Return to top
Show: