# GrapeCity.Documents.Layout.Composition.Space

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Layout_Composition_Space" data-uid="GrapeCity.Documents.Layout.Composition.Space" class="text-break">Space Class
</h1>
  <div class="markdown level0 summary"><p>Represents a space on a <a class="xref" href="GrapeCity.Documents.Layout.Composition.Layer.html">Layer</a> with an associated <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</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">Space</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Layout.Composition.Visual.html">Visual</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Layout.Composition.html">GrapeCity.Documents.Layout.Composition</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Layout_Composition_Space_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Space</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Space</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_Layout_Composition_Space_ID" data-uid="GrapeCity.Documents.Layout.Composition.Space.ID">
          <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.ID.html#GrapeCity_Documents_Layout_Composition_Space_ID">ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the ID of the space. Automatic IDs are negative, custom IDs are positive.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Composition_Space_IsDetached" data-uid="GrapeCity.Documents.Layout.Composition.Space.IsDetached">
          <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.IsDetached.html#GrapeCity_Documents_Layout_Composition_Space_IsDetached">IsDetached</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if this <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.html">Space</a> is not associated with any <a class="xref" href="GrapeCity.Documents.Layout.Composition.Layer.html">Layer</a>,
<a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a> otherwise.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Composition_Space_Layer" data-uid="GrapeCity.Documents.Layout.Composition.Space.Layer">
          <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.Layer.html#GrapeCity_Documents_Layout_Composition_Space_Layer">Layer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the owner <a class="xref" href="GrapeCity.Documents.Layout.Composition.Layer.html">Layer</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Composition_Space_LayoutRect" data-uid="GrapeCity.Documents.Layout.Composition.Space.LayoutRect">
          <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.LayoutRect.html#GrapeCity_Documents_Layout_Composition_Space_LayoutRect">LayoutRect</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.Documents.Layout.LayoutRect.html">LayoutRect</a> associated with this <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.html">Space</a>,
or <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> for a <a class="xref" href="GrapeCity.Documents.Layout.Composition.Visual.html">Visual</a> without the associated rectangle.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Composition_Space_Name" data-uid="GrapeCity.Documents.Layout.Composition.Space.Name">
          <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.Name.html#GrapeCity_Documents_Layout_Composition_Space_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of this <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.html">Space</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Composition_Space_Tag" data-uid="GrapeCity.Documents.Layout.Composition.Space.Tag">
          <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.Tag.html#GrapeCity_Documents_Layout_Composition_Space_Tag">Tag</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an object that contains arbitrary data associated with this space.</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_Layout_Composition_Space_Detach" data-uid="GrapeCity.Documents.Layout.Composition.Space.Detach">
          <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.Detach.html#GrapeCity_Documents_Layout_Composition_Space_Detach">Detach()</a>
        </td>
        <td class="markdown level1 summary"><p>Detaches this <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.html">Space</a> from the owner <a class="xref" href="GrapeCity.Documents.Layout.Composition.Layer.html">Layer</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Layout_Composition_Space_ToString" data-uid="GrapeCity.Documents.Layout.Composition.Space.ToString">
          <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.ToString.html#GrapeCity_Documents_Layout_Composition_Space_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the current <a class="xref" href="GrapeCity.Documents.Layout.Composition.Space.html">Space</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
