IsRecordingCustomRecord 属性 (Word) UndoRecordUndoRecord.IsRecordingCustomRecord property (Word)

返回一个Boolean类型的值, 该值指定是否正在录制自定义撤消操作。Returns a Boolean that specifies whether a custom undo action is being recorded. 此为只读属性。Read-only.

语法Syntax

expressionexpression. IsRecordingCustomRecord

_表达式_一个代表**UndoRecord** 对象的变量。expression A variable that represents an UndoRecord object.

示例Example

下面的代码示例显示当前是否正在记录某项自定义撤消操作。The following code example displays whether a custom undo action is currently being recorded.

Dim objUndo as UndoRecord 
Set objUndo = Application.UndoRecord 
 
If objUndo.IsRecordingCustomRecord = False Then 
objUndo.StartCustomRecord ("My Custom Undo") 
End If 
'Custom undo actions here 
objUndo.EndCustomRecord 


另请参阅See also

UndoRecord 对象UndoRecord Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.