AnchorLock class

Office 2013 and later

Anchor Location Is Locked. When the object is serialized out as xml, its qualified name is w10:anchorlock.


Namespace:  DocumentFormat.OpenXml.Vml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class AnchorLock : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

anchorlock (Anchor Location Is Locked)

This element specifies that the anchor location for this object shall not be modified at runtime when an application edits the contents of this document. [Guidance: An application might have automatic behaviors which reposition the anchor for a VML object based on user interaction - for example, moving it from one page to another as needed. This element must tell applications not to perform any such behaviors. end guidance]

If this element is omitted, then the anchor shall not be locked for the parent VML object.

[Example: Consider a floating VML object which must have its anchor locked at the current location. This setting is specified as follows:


The anchorLock element's presence specifies that the VML object's current anchor location must not be changed by applications editing this content. end example].

Parent Elements

arc (§; curve (§; group (§; image (§; line (§; oval (§; polyline (§; rect (§; roundrect (§; shape (§; shapetype (§

[Note: The W3C XML Schema definition of this element’s content model (CT_AnchorLock) is located in §A.6.3. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.