CoAuthLocks.Add Method
Gets a CoAuthLock object that represents a lock added to a specified range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Add ( _
Range As Object, _
Type As WdLockType _
) As CoAuthLock
'Usage
Dim instance As CoAuthLocks
Dim Range As Object
Dim Type As WdLockType
Dim returnValue As CoAuthLock
returnValue = instance.Add(Range, Type)
CoAuthLock Add(
Object Range,
WdLockType Type
)
Parameters
- Range
Type: System.Object
Specifies the document range locked by the CoAuthLock object. This parameter may be a Paragraph, Column, Cell, Row, T:Microsoft.Office.Interop.Word.Table, Range, or Selection object.
- Type
Type: Microsoft.Office.Interop.Word.WdLockType
Specifies the type of lock. The WdLockType specified can only be wdLockEphemeral or wdLockReservation.
Return Value
Type: Microsoft.Office.Interop.Word.CoAuthLock
A CoAuthLock object that represents a lock added to a specified range.