_Document.DeleteAllEditableRanges(Object) 方法

定义

删除(指定用户或用户组有权修改其权限的)所有区域中的权限。Deletes permissions in all ranges for which the specified user or group of users has permission to modify.

public void DeleteAllEditableRanges (ref object EditorID);
abstract member DeleteAllEditableRanges : obj -> unit
Public Sub DeleteAllEditableRanges (Optional ByRef EditorID As Object)

参数

EditorID
Object

可选对象Optional Object. 可以是一个字符串,表示用户的电子邮件别名(如果在同一域中)、电子邮件地址或 WdEditorType 代表一组用户的常量。Can be either a String that represents the user's e-mail alias (if in the same domain), an e-mail address, or a WdEditorType constant that represents a group of users. 如果省略,将从文档中不删除任何权限。If omitted, no permissions are deleted from a document.

注解

您还可以使用 DeleteAll() 对象的方法 Editor 删除指定用户或用户组有权修改的所有区域中的权限。You can also use the DeleteAll() method for the Editor object to delete permissions in all ranges for which a specified user or group of users has permission to modify.

适用于