Partager via


Frame.LockAnchor Property (Word)

True if the specified frame is locked. Read/write Boolean.

Syntax

expression .LockAnchor

expression Required. A variable that represents a Frame object.

Remarks

The frame anchor indicates where the frame will appear in Normal view. You cannot reposition a locked frame anchor.

Example

This example locks the anchor of the first frame in section two of the active document.

Set myRange = ActiveDocument.Sections(2).Range 
If TypeName(myRange) <> "Nothing" And myRange.Frames.Count > 0 Then 
 myRange.Frames(1).LockAnchor = True 
End If

See Also

Concepts

Frame Object Members

Frame Object