TextBoxBase.DeclareChangeBlock TextBoxBase.DeclareChangeBlock TextBoxBase.DeclareChangeBlock TextBoxBase.DeclareChangeBlock Method

定义

创建更改块。Creates a change block.

public:
 IDisposable ^ DeclareChangeBlock();
public IDisposable DeclareChangeBlock ();
member this.DeclareChangeBlock : unit -> IDisposable
Public Function DeclareChangeBlock () As IDisposable

返回

一个 IDisposable 对象,该对象引用新的更改块。An IDisposable object that refers to a new change block.

注解

更改块以逻辑方式将多个更改组合到一个撤消单元中。A change block logically groups multiple changes into a single undo unit. 更改块是通过调用DeclareChangeBlock方法创建的。A change block is created by calling the DeclareChangeBlock method. 调用方法会导致所有后续更改都包含在指定的更改块中, 直到对EndChange方法进行了相应调用。 BeginChangeCalling the BeginChange method causes all subsequent changes to be included in the specified change block until a corresponding call to the EndChange method is made.

适用于

另请参阅