# C1.WPF.FlexGrid.C1FlexGrid.GetClipString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_C1FlexGrid_GetClipString_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.GetClipString*">GetClipString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_C1FlexGrid_GetClipString_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.GetClipString*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_GetClipString_C1_WPF_FlexGrid_ClipboardCopyMode_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.GetClipString(C1.WPF.FlexGrid.ClipboardCopyMode)">GetClipString(ClipboardCopyMode)</h4>
<div class="markdown level1 summary"><p>Gets the current selection as a string suitable for copying to the clipboard.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string GetClipString(ClipboardCopyMode copyMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetClipString(copyMode As ClipboardCopyMode) As String</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.ClipboardCopyMode.html">ClipboardCopyMode</a></td>
      <td><span class="parametername">copyMode</span></td>
      <td><pre><code>&lt;xref href=&quot;C1.WPF.FlexGrid.C1FlexGrid.ClipboardCopyMode&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; that specifies which 
</code></pre>
<p>headers should be included in the string.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>A string with the content of the current selection. Columns are delimited
by tabs and rows are delimited by new lines.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_FlexGrid_C1FlexGrid_GetClipString_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.GetClipString*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_GetClipString_C1_WPF_FlexGrid_CellRange_C1_WPF_FlexGrid_ClipboardCopyMode_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.GetClipString(C1.WPF.FlexGrid.CellRange,C1.WPF.FlexGrid.ClipboardCopyMode)">GetClipString(CellRange, ClipboardCopyMode)</h4>
<div class="markdown level1 summary"><p>Gets a range of cells as a string suitable for copying to the clipboard.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string GetClipString(CellRange rng, ClipboardCopyMode copyMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetClipString(rng As CellRange, copyMode As ClipboardCopyMode) As String</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a></td>
      <td><span class="parametername">rng</span></td>
      <td><pre><code>&lt;xref href=&quot;C1.WPF.FlexGrid.CellRange&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; that specifies the range of cells that 
</code></pre>
<p>should be included in the string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.ClipboardCopyMode.html">ClipboardCopyMode</a></td>
      <td><span class="parametername">copyMode</span></td>
      <td><pre><code>&lt;xref href=&quot;C1.WPF.FlexGrid.C1FlexGrid.ClipboardCopyMode&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; that specifies which 
</code></pre>
<p>headers should be included in the string.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>A string with the content of the current selection. Columns are delimited
by tabs and rows are delimited by new lines.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
