# GrapeCity.Documents.Word.ShapeWidth

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_ShapeWidth" data-uid="GrapeCity.Documents.Word.ShapeWidth" class="text-break">ShapeWidth Class
</h1>
  <div class="markdown level0 summary"><p>Represents the width of a shape.</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.FormattingBag.html">FormattingBag</a></div>
    <div class="level2"><span class="xref">ShapeWidth</span></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_ShapeWidth_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ShapeWidth : FormattingBag</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ShapeWidth
    Inherits FormattingBag</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_ShapeWidth_Relative" data-uid="GrapeCity.Documents.Word.ShapeWidth.Relative">
          <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.Relative.html#GrapeCity_Documents_Word_ShapeWidth_Relative">Relative</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the shape width in percent according to the <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.RelativeTo.html#GrapeCity_Documents_Word_ShapeWidth_RelativeTo">RelativeTo</a> value.</p>
<p>
If the property <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.RelativeTo.html#GrapeCity_Documents_Word_ShapeWidth_RelativeTo">RelativeTo</a> value is <a class="xref" href="GrapeCity.Documents.Word.SizeRelativeHorizontally.html#GrapeCity_Documents_Word_SizeRelativeHorizontally_None">None</a> then use the <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.Value.html#GrapeCity_Documents_Word_ShapeWidth_Value">Value</a> property value.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ShapeWidth_RelativeTo" data-uid="GrapeCity.Documents.Word.ShapeWidth.RelativeTo">
          <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.RelativeTo.html#GrapeCity_Documents_Word_ShapeWidth_RelativeTo">RelativeTo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the relative width type of a shape.</p>
<p>
If the property value is <a class="xref" href="GrapeCity.Documents.Word.SizeRelativeHorizontally.html#GrapeCity_Documents_Word_SizeRelativeHorizontally_None">None</a>, then the <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.Value.html#GrapeCity_Documents_Word_ShapeWidth_Value">Value</a> property value must be used, 
otherwise the <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.Relative.html#GrapeCity_Documents_Word_ShapeWidth_Relative">Relative</a> property value is used.
</p>
<p>
If property <a class="xref" href="GrapeCity.Documents.Word.WrapFormat.Type.html#GrapeCity_Documents_Word_WrapFormat_Type">Type</a> is Inline, this value is always <a class="xref" href="GrapeCity.Documents.Word.SizeRelativeHorizontally.html#GrapeCity_Documents_Word_SizeRelativeHorizontally_None">None</a>.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ShapeWidth_Value" data-uid="GrapeCity.Documents.Word.ShapeWidth.Value">
          <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.Value.html#GrapeCity_Documents_Word_ShapeWidth_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the shape width in points or percent according to the <a class="xref" href="GrapeCity.Documents.Word.ShapeHorizontalPosition.Type.html#GrapeCity_Documents_Word_ShapeHorizontalPosition_Type">Type</a> value.</p>
<p>
If the property <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.RelativeTo.html#GrapeCity_Documents_Word_ShapeWidth_RelativeTo">RelativeTo</a> value is not <a class="xref" href="GrapeCity.Documents.Word.SizeRelativeHorizontally.html#GrapeCity_Documents_Word_SizeRelativeHorizontally_None">None</a>, then the <a class="xref" href="GrapeCity.Documents.Word.ShapeWidth.Relative.html#GrapeCity_Documents_Word_ShapeWidth_Relative">Relative</a> property value is used.
</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
