Word.CoauthoringLockAddOptions interface
Specifies the options for adding to a Word.CoauthoringLockCollection object.
Remarks
This API works only with legacy coauthoring locks. It doesn't apply to modern OneDrive or SharePoint coauthoring, where lock management is handled automatically by the service. Calls on a modern document will fail with a GeneralException error.
Used by
Properties
| range | If provided, specifies the range to which the lock is added. If not provided, the new lock is placed on the paragraph that contains the insertion point. |
| type | If provided, specifies the type of lock. If not provided, the lock type is set to |
Property Details
range
If provided, specifies the range to which the lock is added. If not provided, the new lock is placed on the paragraph that contains the insertion point.
range?: Word.Range;
Property Value
Remarks
type
If provided, specifies the type of lock. If not provided, the lock type is set to reservation.
type?: Word.CoauthoringLockType | "None" | "Reservation" | "Ephemeral" | "Changed";
Property Value
Word.CoauthoringLockType | "None" | "Reservation" | "Ephemeral" | "Changed"