_Application.DontResetInsertionPointProperties 属性

定义

返回或设置一个 Boolean 类型的值,该值代表 Microsoft Office Word在运行其他代码后是否在插入点的该位置维护文本的格式设置属性。 读/写。

public:
 property bool DontResetInsertionPointProperties { bool get(); void set(bool value); };
public bool DontResetInsertionPointProperties { get; set; }
member this.DontResetInsertionPointProperties : bool with get, set
Public Property DontResetInsertionPointProperties As Boolean

属性值

Boolean

注解

有时,在运行其他 Microsoft Visual Basic for Applications (VBA) 代码后,Word 会丢失插入点的格式。 如果发生这样的情况,则会给依赖屏幕读取器应用程序的用户造成困难。 当用户的辅助应用程序执行看起来不相关的任务时,他们会丢失格式。 当运行包含 Word 对象模型中的属性或方法的其他代码时,此属性可防止 Word 丢失或更改位于插入点位置的文本的格式。

重要提示:请勿使用此属性,除非你特别需要它来使解决方案正常运行。

适用于