편집

다음을 통해 공유


CoAuthLocks.Add(Object, WdLockType) Method

Definition

Gets a CoAuthLock object that represents a lock added to a specified range.

public Microsoft.Office.Interop.Word.CoAuthLock Add (object Range, Microsoft.Office.Interop.Word.WdLockType Type = Microsoft.Office.Interop.Word.WdLockType.wdLockReservation);
abstract member Add : obj * Microsoft.Office.Interop.Word.WdLockType -> Microsoft.Office.Interop.Word.CoAuthLock
Public Function Add (Optional Range As Object, Optional Type As WdLockType = Microsoft.Office.Interop.Word.WdLockType.wdLockReservation) As CoAuthLock

Parameters

Range
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
WdLockType

Specifies the type of lock. The WdLockType specified can only be wdLockEphemeral or wdLockReservation.

Returns

A CoAuthLock object that represents a lock added to a specified range.

Applies to