# C1.C1Excel.XLShape

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Excel_XLShape" data-uid="C1.C1Excel.XLShape" class="text-break">XLShape Class
</h1>
  <div class="markdown level0 summary"><p>Represents a shape embedded in an <a class="xref" href="C1.C1Excel.XLSheet.html">XLSheet</a>.</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">XLShape</span></div>
      <div class="level2"><a class="xref" href="C1.C1Excel.XLOpaqueShape.html">XLOpaqueShape</a></div>
      <div class="level2"><a class="xref" href="C1.C1Excel.XLPictureShape.html">XLPictureShape</a></div>
      <div class="level2"><a class="xref" href="C1.C1Excel.XLTextShape.html">XLTextShape</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Excel.html">C1.C1Excel</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Excel.4.8.dll</h6>
  <h5 id="C1_C1Excel_XLShape_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class XLShape : ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class XLShape
    Implements ICloneable</code></pre>
  </div>
  <h5 id="C1_C1Excel_XLShape_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Excel sheets may contain many types of embedded shapes, including 
images, graphical elements, controls, and comments.</p>
<p>The <b>XLShape</b> abstract class contains information that is common
to all shape types, including the shape's location (<a class="xref" href="C1.C1Excel.XLShape.Sheet.html#C1_C1Excel_XLShape_Sheet">Sheet</a>, <a class="xref" href="C1.C1Excel.XLShape.Row.html#C1_C1Excel_XLShape_Row">Row</a>, 
<a class="xref" href="C1.C1Excel.XLShape.Column.html#C1_C1Excel_XLShape_Column">Column</a>, <a class="xref" href="C1.C1Excel.XLShape.Rectangle.html#C1_C1Excel_XLShape_Rectangle">Rectangle</a>, <a class="xref" href="C1.C1Excel.XLShape.Rotation.html#C1_C1Excel_XLShape_Rotation">Rotation</a>),
the type of border drawn around the shape (<a class="xref" href="C1.C1Excel.XLShape.LineWidth.html#C1_C1Excel_XLShape_LineWidth">LineWidth</a>, <a class="xref" href="C1.C1Excel.XLShape.LineColor.html#C1_C1Excel_XLShape_LineColor">LineColor</a>, 
<a class="xref" href="C1.C1Excel.XLShape.LineStyle.html#C1_C1Excel_XLShape_LineStyle">LineStyle</a>), the <a class="xref" href="C1.C1Excel.XLShape.Rotation.html#C1_C1Excel_XLShape_Rotation">Rotation</a> applied to the shape, and
<a class="xref" href="C1.C1Excel.XLShape.Hyperlink.html#C1_C1Excel_XLShape_Hyperlink">Hyperlink</a> information.</p>
<p>The <a class="xref" href="C1.C1Excel.XLPictureShape.html">XLPictureShape</a> class derives from <b>XLShape</b> and 
is used to embed images in sheets.</p>
</div>
  <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_C1Excel_XLShape_Column" data-uid="C1.C1Excel.XLShape.Column">
          <a class="xref" href="C1.C1Excel.XLShape.Column.html#C1_C1Excel_XLShape_Column">Column</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the column to which the shape is attached.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_DashedLineStyle" data-uid="C1.C1Excel.XLShape.DashedLineStyle">
          <a class="xref" href="C1.C1Excel.XLShape.DashedLineStyle.html#C1_C1Excel_XLShape_DashedLineStyle">DashedLineStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the dash style of the line or border around the shape.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_Hyperlink" data-uid="C1.C1Excel.XLShape.Hyperlink">
          <a class="xref" href="C1.C1Excel.XLShape.Hyperlink.html#C1_C1Excel_XLShape_Hyperlink">Hyperlink</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the hyperlink associated with the shape.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_Id" data-uid="C1.C1Excel.XLShape.Id">
          <a class="xref" href="C1.C1Excel.XLShape.Id.html#C1_C1Excel_XLShape_Id">Id</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the unique identifier of the shape.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_IsEmpty" data-uid="C1.C1Excel.XLShape.IsEmpty">
          <a class="xref" href="C1.C1Excel.XLShape.IsEmpty.html#C1_C1Excel_XLShape_IsEmpty">IsEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the shape is empty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_LineColor" data-uid="C1.C1Excel.XLShape.LineColor">
          <a class="xref" href="C1.C1Excel.XLShape.LineColor.html#C1_C1Excel_XLShape_LineColor">LineColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color of the border around the shape.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_LineStyle" data-uid="C1.C1Excel.XLShape.LineStyle">
          <a class="xref" href="C1.C1Excel.XLShape.LineStyle.html#C1_C1Excel_XLShape_LineStyle">LineStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the style of the line or border around the shape.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_LineWidth" data-uid="C1.C1Excel.XLShape.LineWidth">
          <a class="xref" href="C1.C1Excel.XLShape.LineWidth.html#C1_C1Excel_XLShape_LineWidth">LineWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the border around the shape, in twips.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_Rectangle" data-uid="C1.C1Excel.XLShape.Rectangle">
          <a class="xref" href="C1.C1Excel.XLShape.Rectangle.html#C1_C1Excel_XLShape_Rectangle">Rectangle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the rectangle that contains the shape, in twips.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_Rotation" data-uid="C1.C1Excel.XLShape.Rotation">
          <a class="xref" href="C1.C1Excel.XLShape.Rotation.html#C1_C1Excel_XLShape_Rotation">Rotation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the rotation of the shape, in degrees.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_Row" data-uid="C1.C1Excel.XLShape.Row">
          <a class="xref" href="C1.C1Excel.XLShape.Row.html#C1_C1Excel_XLShape_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the row to which the shape is attached.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_Sheet" data-uid="C1.C1Excel.XLShape.Sheet">
          <a class="xref" href="C1.C1Excel.XLShape.Sheet.html#C1_C1Excel_XLShape_Sheet">Sheet</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the parent <a class="xref" href="C1.C1Excel.XLSheet.html">XLSheet</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_Workbook" data-uid="C1.C1Excel.XLShape.Workbook">
          <a class="xref" href="C1.C1Excel.XLShape.Workbook.html#C1_C1Excel_XLShape_Workbook">Workbook</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the parent <a class="xref" href="C1.C1Excel.C1XLBook.html">C1XLBook</a> object.</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_C1Excel_XLShape_Clone" data-uid="C1.C1Excel.XLShape.Clone">
          <a class="xref" href="C1.C1Excel.XLShape.Clone.html#C1_C1Excel_XLShape_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object that is a copy of the current instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_CreateProperties_System_Collections_IDictionary_" data-uid="C1.C1Excel.XLShape.CreateProperties(System.Collections.IDictionary)">
          <a class="xref" href="C1.C1Excel.XLShape.CreateProperties.html#C1_C1Excel_XLShape_CreateProperties_System_Collections_IDictionary_">CreateProperties(IDictionary)</a>
        </td>
        <td class="markdown level1 summary"><p>Populates an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.idictionary">IDictionary</a> with the shape properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_XLShape_ParseProperties_System_Collections_IDictionary_" data-uid="C1.C1Excel.XLShape.ParseProperties(System.Collections.IDictionary)">
          <a class="xref" href="C1.C1Excel.XLShape.ParseProperties.html#C1_C1Excel_XLShape_ParseProperties_System_Collections_IDictionary_">ParseProperties(IDictionary)</a>
        </td>
        <td class="markdown level1 summary"><p>Parse shape properties.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
