# C1.WPF.FlexGrid.Sheet

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_FlexGrid_Sheet" data-uid="C1.WPF.FlexGrid.Sheet" class="text-break">Sheet Class
</h1>
  <div class="markdown level0 summary"><p>Represents a worksheet within an ExcelBook.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">Sheet</span></div>
      <div class="level2"><a class="xref" href="C1.WPF.FlexGrid.NewSheet.html">NewSheet</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexSheet.4.6.2.dll</h6>
  <h5 id="C1_WPF_FlexGrid_Sheet_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Sheet : C1TabItem</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Sheet
    Inherits C1TabItem</code></pre>
  </div>
  <h5 id="C1_WPF_FlexGrid_Sheet_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This class extends the C1TabItem class and has an editable label on its header,
which represents the sheet name, and a C1FlexGrid control that contains the sheet
content.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet__ctor" data-uid="C1.WPF.FlexGrid.Sheet.#ctor">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.-ctor.html#C1_WPF_FlexGrid_Sheet__ctor">Sheet()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet__ctor_C1_Excel_XLSheet_" data-uid="C1.WPF.FlexGrid.Sheet.#ctor(C1.Excel.XLSheet)">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.-ctor.html#C1_WPF_FlexGrid_Sheet__ctor_C1_Excel_XLSheet_">Sheet(XLSheet)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.Sheet.html">Sheet</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet__ctor_C1_Excel_XLSheet_C1_WPF_FlexGrid_C1FlexSheet_" data-uid="C1.WPF.FlexGrid.Sheet.#ctor(C1.Excel.XLSheet,C1.WPF.FlexGrid.C1FlexSheet)">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.-ctor.html#C1_WPF_FlexGrid_Sheet__ctor_C1_Excel_XLSheet_C1_WPF_FlexGrid_C1FlexSheet_">Sheet(XLSheet, C1FlexSheet)</a>
        </td>
        <td class="markdown level1 summary"><p>Construct a new sheet.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_IsProtectedProperty" data-uid="C1.WPF.FlexGrid.Sheet.IsProtectedProperty">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.IsProtectedProperty.html">IsProtectedProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_Grid" data-uid="C1.WPF.FlexGrid.Sheet.Grid">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.Grid.html#C1_WPF_FlexGrid_Sheet_Grid">Grid</a>
        </td>
        <td class="markdown level1 summary"><p>The flexgrid in sheet.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_IsProtected" data-uid="C1.WPF.FlexGrid.Sheet.IsProtected">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.IsProtected.html#C1_WPF_FlexGrid_Sheet_IsProtected">IsProtected</a>
        </td>
        <td class="markdown level1 summary"><p>Indicated whether the sheet is protected</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_SheetName" data-uid="C1.WPF.FlexGrid.Sheet.SheetName">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.SheetName.html#C1_WPF_FlexGrid_Sheet_SheetName">SheetName</a>
        </td>
        <td class="markdown level1 summary"><p>Sheet name for the sheet.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_AddLockedCell_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.Sheet.AddLockedCell(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.AddLockedCell.html#C1_WPF_FlexGrid_Sheet_AddLockedCell_System_Int32_System_Int32_">AddLockedCell(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Locked the specified cell..</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_AddLockedCell_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.Sheet.AddLockedCell(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.AddLockedCell.html#C1_WPF_FlexGrid_Sheet_AddLockedCell_System_Int32_System_Int32_System_Int32_System_Int32_">AddLockedCell(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Locked the specified cell range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_EditName" data-uid="C1.WPF.FlexGrid.Sheet.EditName">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.EditName.html#C1_WPF_FlexGrid_Sheet_EditName">EditName()</a>
        </td>
        <td class="markdown level1 summary"><p>Start edit the sheet name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_OnKeyDown_System_Windows_Input_KeyEventArgs_" data-uid="C1.WPF.FlexGrid.Sheet.OnKeyDown(System.Windows.Input.KeyEventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.OnKeyDown.html#C1_WPF_FlexGrid_Sheet_OnKeyDown_System_Windows_Input_KeyEventArgs_">OnKeyDown(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_OnMouseRightButtonUp_System_Windows_Input_MouseButtonEventArgs_" data-uid="C1.WPF.FlexGrid.Sheet.OnMouseRightButtonUp(System.Windows.Input.MouseButtonEventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.OnMouseRightButtonUp.html#C1_WPF_FlexGrid_Sheet_OnMouseRightButtonUp_System_Windows_Input_MouseButtonEventArgs_">OnMouseRightButtonUp(MouseButtonEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_Sheet_OnPreviewMouseMove_System_Windows_Input_MouseEventArgs_" data-uid="C1.WPF.FlexGrid.Sheet.OnPreviewMouseMove(System.Windows.Input.MouseEventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.Sheet.OnPreviewMouseMove.html#C1_WPF_FlexGrid_Sheet_OnPreviewMouseMove_System_Windows_Input_MouseEventArgs_">OnPreviewMouseMove(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
