# GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.IsReadOnly

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_IsReadOnly_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.IsReadOnly*">IsReadOnly Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_IsReadOnly_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.IsReadOnly*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_IsReadOnly" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.IsReadOnly">IsReadOnly</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether this control is read only.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool IsReadOnly { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property IsReadOnly As Boolean</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the control is read-only; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.
<br>
The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_IsReadOnly_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When this property is set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>,
the contents of the control cannot be changed by the user at runtime.
With this property set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>,
you can still set the value of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.Text.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_Text">Text</a> property in code.
You can use this feature instead of disabling the control
with the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.isenabled">IsEnabled</a> property to allow the contents
to be copied and ToolTips to be shown.</p>
</div>
</div>
