Share via


Shape.LockAnchor Property

Determines if the specified Shape object's anchor is locked to the anchoring range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property LockAnchor As Integer
    Get
    Set
'Usage
Dim instance As Shape
Dim value As Integer

value = instance.LockAnchor

instance.LockAnchor = value
int LockAnchor { get; set; }

Property Value

Type: System.Int32

Remarks

This property returns true if the specified Shape object's anchor is locked to the anchoring range. When a shape has a locked anchor, you cannot move the shape's anchor by dragging it (the anchor doesn't move as the shape is moved).

A Shape object is anchored to a range of text, but you can position it anywhere on the page. The shape is anchored to the beginning of the first paragraph that contains the anchoring range. A shape will always remain on the same page as its anchor.

See Also

Reference

Shape Interface

Shape Members

Microsoft.Office.Interop.Word Namespace