# GrapeCity.Documents.Word.ShapePosition.LockAnchor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_ShapePosition_LockAnchor_" data-uid="GrapeCity.Documents.Word.ShapePosition.LockAnchor*">LockAnchor Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_ShapePosition_LockAnchor_" data-uid="GrapeCity.Documents.Word.ShapePosition.LockAnchor*"></a>
<h4 id="GrapeCity_Documents_Word_ShapePosition_LockAnchor" data-uid="GrapeCity.Documents.Word.ShapePosition.LockAnchor">LockAnchor</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether the anchor location for a shape
shall not be modified at runtime when an application edits the contents of this document.</p>
<p>
If <a class="xref" href="GrapeCity.Documents.Word.WrapFormat.Type.html#GrapeCity_Documents_Word_WrapFormat_Type">Type</a> is <a class="xref" href="GrapeCity.Documents.Word.WrapType.html#GrapeCity_Documents_Word_WrapType_Inline">Inline</a>,
this value does not have any effect when displaying the object, 
but can be maintained and used if the object is subsequently changed to floating. 
</p>
<p>
An application might have automatic behaviors that reposition the anchor for a shape based on user interaction - for example, 
moving it from one page to another as needed. This property must tell applications not to perform any such behaviors.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool LockAnchor { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property LockAnchor As Boolean</code></pre>
</div>
</div>
