# C1.WPF.FlexGrid.C1FlexGrid.SetClipString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_C1FlexGrid_SetClipString_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.SetClipString*">SetClipString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_C1FlexGrid_SetClipString_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.SetClipString*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_SetClipString_System_String_C1_WPF_FlexGrid_CellRange_C1_WPF_FlexGrid_ClipboardCopyMode_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.SetClipString(System.String,C1.WPF.FlexGrid.CellRange,C1.WPF.FlexGrid.ClipboardCopyMode)">SetClipString(string, CellRange, ClipboardCopyMode)</h4>
<div class="markdown level1 summary"><p>Parses a string into rows and columns and applies the content to a given range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetClipString(string text, CellRange rng, ClipboardCopyMode copyMode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetClipString(text As String, rng As CellRange, copyMode As ClipboardCopyMode)</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>Text to parse into the grid.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a></td>
      <td><span class="parametername">rng</span></td>
      <td><p>Range where the text will be pasted.</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><p>Whether the string contains header information that should
be discarded when applying the values to the cells.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_FlexGrid_C1FlexGrid_SetClipString_System_String_C1_WPF_FlexGrid_CellRange_C1_WPF_FlexGrid_ClipboardCopyMode__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;The string contains rows delimited by newline characters and cells delimited
</code></pre>
<p>by tabs (standard clipboard format).</p>
<p>Only the top left cell of the <code class="paramref">rng</code> parameter is used;
the number of rows and columns copied to the grid is determined by the content
of the <code class="paramref">text</code> parameter.</p>
</div>
</div>
