# C1.FlexMap.IMapDevice.DrawString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_FlexMap_IMapDevice_DrawString_" data-uid="C1.FlexMap.IMapDevice.DrawString*">DrawString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_FlexMap_IMapDevice_DrawString_" data-uid="C1.FlexMap.IMapDevice.DrawString*"></a>
<h4 id="C1_FlexMap_IMapDevice_DrawString_System_String_C1_FlexMap_IMapStyle_C1_Win_Interop_Rect_" data-uid="C1.FlexMap.IMapDevice.DrawString(System.String,C1.FlexMap.IMapStyle,C1.Win.Interop.Rect)">DrawString(string, IMapStyle, Rect)</h4>
<div class="markdown level1 summary"><p>Draws the string in the specified rectangle with specified style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void DrawString(string s, IMapStyle style, Rect bounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub DrawString(s As String, style As IMapStyle, bounds As Rect)</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">s</span></td>
      <td><p>The string to draw.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.FlexMap.IMapStyle.html">IMapStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The style used to draw the string.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Rect</span></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The bounds to draw the string.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
