UndoContext.IsStrict 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指示撤消堆栈链接是否严格的值。
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
属性值
指示 true 撤消堆栈链接是否设置为 strict 的布尔值( false 如果未设置)。
- 属性
注解
严格链接的撤消行为指定所有链接的撤消同级堆栈必须一起撤消或全部撤消。 在编辑更改中,通常需要严格链接的撤消操作,这些更改涉及跨多个程序文件(例如头文件和 Visual C++ 文件)同时进行文本更改。 这实际上是 Visual Studio 中使用的模型。 有关撤消堆栈链接的详细信息,请参阅 OpenLinkedUndo 方法。