UndoContext.IsStrict 属性

定义

获取指示撤消堆栈链接是否严格的值。

public:
 property bool IsStrict { bool get(); };
public:
 property bool IsStrict { bool get(); };
[System.Runtime.InteropServices.DispId(6)]
public bool IsStrict { [System.Runtime.InteropServices.DispId(6)] get; }
[<System.Runtime.InteropServices.DispId(6)>]
[<get: System.Runtime.InteropServices.DispId(6)>]
member this.IsStrict : bool
Public ReadOnly Property IsStrict As Boolean

属性值

Boolean

指示 true 撤消堆栈链接是否设置为 strict 的布尔值( false 如果未设置)。

属性

注解

严格链接的撤消行为指定所有链接的撤消同级堆栈必须一起撤消或全部撤消。 在编辑更改中,通常需要严格链接的撤消操作,这些更改涉及跨多个程序文件(例如头文件和 Visual C++ 文件)同时进行文本更改。 这实际上是 Visual Studio 中使用的模型。 有关撤消堆栈链接的详细信息,请参阅 OpenLinkedUndo 方法。

适用于