UndoRecord.IsRecordingCustomRecord 属性 (Word)UndoRecord.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 a '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