# GrapeCity.Documents.Word.Shape

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_Shape" data-uid="GrapeCity.Documents.Word.Shape" class="text-break">Shape Class
</h1>
  <div class="markdown level0 summary"><p>Represents a shape element in a body content.</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"><a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a></div>
    <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.ShapeBase.html">ShapeBase</a></div>
    <div class="level3"><span class="xref">Shape</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.IBrowsable-1.html">IBrowsable</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.Shape.html">Shape</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_Shape_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Shape : ShapeBase, IBrowsable&lt;Shape&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Shape
    Inherits ShapeBase
    Implements IBrowsable(Of Shape)</code></pre>
  </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="GrapeCity_Documents_Word_Shape_Effects" data-uid="GrapeCity.Documents.Word.Shape.Effects">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.Effects.html#GrapeCity_Documents_Word_Shape_Effects">Effects</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the shape effects formatting properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_Fill" data-uid="GrapeCity.Documents.Word.Shape.Fill">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.Fill.html#GrapeCity_Documents_Word_Shape_Fill">Fill</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the fill formatting properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_GeometryType" data-uid="GrapeCity.Documents.Word.Shape.GeometryType">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the geometry type of this shape.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_Line" data-uid="GrapeCity.Documents.Word.Shape.Line">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.Line.html#GrapeCity_Documents_Word_Shape_Line">Line</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the line formatting properties.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_LinkedTextFrame" data-uid="GrapeCity.Documents.Word.Shape.LinkedTextFrame">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.LinkedTextFrame.html#GrapeCity_Documents_Word_Shape_LinkedTextFrame">LinkedTextFrame</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first linked text frame that participates in a text frame story.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_Next" data-uid="GrapeCity.Documents.Word.Shape.Next">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.Next.html#GrapeCity_Documents_Word_Shape_Next">Next</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the next shape.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_Previous" data-uid="GrapeCity.Documents.Word.Shape.Previous">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.Previous.html#GrapeCity_Documents_Word_Shape_Previous">Previous</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the previous shape.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_Style" data-uid="GrapeCity.Documents.Word.Shape.Style">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.Style.html#GrapeCity_Documents_Word_Shape_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the style information for this shape.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_TextFrame" data-uid="GrapeCity.Documents.Word.Shape.TextFrame">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.TextFrame.html#GrapeCity_Documents_Word_Shape_TextFrame">TextFrame</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the text content of this shape.</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="GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_GrapeCity_Documents_Word_TextFrame_" data-uid="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame(GrapeCity.Documents.Word.TextFrame)">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame.html#GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_GrapeCity_Documents_Word_TextFrame_">AddLinkedTextFrame(TextFrame)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a linked text frame that participates in a text frame story.</p>
<p>Note that some geometries do not allow text frames (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.TextFrameSupported.html#GrapeCity_Documents_Word_Extensions_TextFrameSupported_GrapeCity_Documents_Word_GeometryType_">TextFrameSupported(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape does not support text frames, an exception will be thrown.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_GrapeCity_Documents_Word_TextFrame_System_Int32_" data-uid="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame(GrapeCity.Documents.Word.TextFrame,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.AddLinkedTextFrame.html#GrapeCity_Documents_Word_Shape_AddLinkedTextFrame_GrapeCity_Documents_Word_TextFrame_System_Int32_">AddLinkedTextFrame(TextFrame, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a linked text frame that participates in a text frame story.</p>
<p>Note that some geometries do not allow text frames (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.TextFrameSupported.html#GrapeCity_Documents_Word_Extensions_TextFrameSupported_GrapeCity_Documents_Word_GeometryType_">TextFrameSupported(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape does not support text frames, an exception will be thrown.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_AddTextFrame_System_String_GrapeCity_Documents_Word_Style_" data-uid="GrapeCity.Documents.Word.Shape.AddTextFrame(System.String,GrapeCity.Documents.Word.Style)">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.AddTextFrame.html#GrapeCity_Documents_Word_Shape_AddTextFrame_System_String_GrapeCity_Documents_Word_Style_">AddTextFrame(string, Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a text frame to this shape.</p>
<p>Note that some geometries do not allow text frames (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.TextFrameSupported.html#GrapeCity_Documents_Word_Extensions_TextFrameSupported_GrapeCity_Documents_Word_GeometryType_">TextFrameSupported(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape does not support text frames, an exception will be thrown.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_ApplyEffectsPreset_GrapeCity_Documents_Word_ShapeEffectsPreset_" data-uid="GrapeCity.Documents.Word.Shape.ApplyEffectsPreset(GrapeCity.Documents.Word.ShapeEffectsPreset)">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyEffectsPreset.html#GrapeCity_Documents_Word_Shape_ApplyEffectsPreset_GrapeCity_Documents_Word_ShapeEffectsPreset_">ApplyEffectsPreset(ShapeEffectsPreset)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_ApplyPreset_GrapeCity_Documents_Word_LineShapePreset_" data-uid="GrapeCity.Documents.Word.Shape.ApplyPreset(GrapeCity.Documents.Word.LineShapePreset)">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyPreset.html#GrapeCity_Documents_Word_Shape_ApplyPreset_GrapeCity_Documents_Word_LineShapePreset_">ApplyPreset(LineShapePreset)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies a predefined outline (<a class="xref" href="GrapeCity.Documents.Word.LineShapePreset.html">LineShapePreset</a>) to this shape.</p>
<p>Note that <a class="xref" href="GrapeCity.Documents.Word.LineShapePreset.html">LineShapePreset</a>s can only be applied to line geometries (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.IsLineGeometry.html#GrapeCity_Documents_Word_Extensions_IsLineGeometry_GrapeCity_Documents_Word_GeometryType_">IsLineGeometry(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape is not a line geometry, this method will do nothing and return false.
For non-line geometries use <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyPreset.html#GrapeCity_Documents_Word_Shape_ApplyPreset_GrapeCity_Documents_Word_ShapePreset_">ApplyPreset(ShapePreset)</a> instead.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_ApplyPreset_GrapeCity_Documents_Word_ShapePreset_" data-uid="GrapeCity.Documents.Word.Shape.ApplyPreset(GrapeCity.Documents.Word.ShapePreset)">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyPreset.html#GrapeCity_Documents_Word_Shape_ApplyPreset_GrapeCity_Documents_Word_ShapePreset_">ApplyPreset(ShapePreset)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies a predefined fill and outline (<a class="xref" href="GrapeCity.Documents.Word.ShapePreset.html">ShapePreset</a>) to this shape.</p>
<p>Note that <a class="xref" href="GrapeCity.Documents.Word.ShapePreset.html">ShapePreset</a>s cannot be applied to line geometries (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.IsLineGeometry.html#GrapeCity_Documents_Word_Extensions_IsLineGeometry_GrapeCity_Documents_Word_GeometryType_">IsLineGeometry(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape is a line geometry, this method will do nothing and return false.
For line geometries use <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyPreset.html#GrapeCity_Documents_Word_Shape_ApplyPreset_GrapeCity_Documents_Word_LineShapePreset_">ApplyPreset(LineShapePreset)</a> instead.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedLineStyle_" data-uid="GrapeCity.Documents.Word.Shape.ApplyThemedStyle(GrapeCity.Documents.Word.ThemedLineStyle)">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyThemedStyle.html#GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedLineStyle_">ApplyThemedStyle(ThemedLineStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies a predefined <a class="xref" href="GrapeCity.Documents.Word.ThemedLineStyle.html">ThemedLineStyle</a> to this shape.</p>
<p>Note that <a class="xref" href="GrapeCity.Documents.Word.ThemedLineStyle.html">ThemedLineStyle</a>s cannot be applied to non-line geometries (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.IsLineGeometry.html#GrapeCity_Documents_Word_Extensions_IsLineGeometry_GrapeCity_Documents_Word_GeometryType_">IsLineGeometry(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape is not a line geometry, this method will do nothing and return false.
For line geometries use <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyThemedStyle.html#GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedShapeStyle_">ApplyThemedStyle(ThemedShapeStyle)</a> instead.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedShapeStyle_" data-uid="GrapeCity.Documents.Word.Shape.ApplyThemedStyle(GrapeCity.Documents.Word.ThemedShapeStyle)">
          <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyThemedStyle.html#GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedShapeStyle_">ApplyThemedStyle(ThemedShapeStyle)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies a predefined <a class="xref" href="GrapeCity.Documents.Word.ThemedShapeStyle.html">ThemedShapeStyle</a> to this shape.</p>
<p>Note that <a class="xref" href="GrapeCity.Documents.Word.ThemedShapeStyle.html">ThemedShapeStyle</a>s cannot be applied to line geometries (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.IsLineGeometry.html#GrapeCity_Documents_Word_Extensions_IsLineGeometry_GrapeCity_Documents_Word_GeometryType_">IsLineGeometry(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape is a line geometry, this method will do nothing and return false.
For line geometries use <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyThemedStyle.html#GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedLineStyle_">ApplyThemedStyle(ThemedLineStyle)</a> instead.
</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
