Document.DeleteAllEditableRanges Method
Deletes permissions in all ranges that the specified user or group of users has permission to modify.
Namespace: Microsoft.Office.Tools.Word
Assemblies: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Sub DeleteAllEditableRanges ( _
ByRef EditorID As Object _
)
void DeleteAllEditableRanges(
ref Object EditorID
)
Parameters
EditorID
Type: System.Object%One of the WdEditorType values that represents a group of users, or a user's e-mail alias (if in the same domain), or an e-mail address. If omitted, no permissions are deleted from the document.
Remarks
You can also use the Editor.DeleteAll method of the Editor object to delete permissions in all ranges that a specified user or group of users has permission to modify.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.