# C1.WPF.Maps.QuadTreeTileSource.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Maps_QuadTreeTileSource__ctor_" data-uid="C1.WPF.Maps.QuadTreeTileSource.#ctor*">QuadTreeTileSource Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Maps_QuadTreeTileSource__ctor_" data-uid="C1.WPF.Maps.QuadTreeTileSource.#ctor*"></a>
<h4 id="C1_WPF_Maps_QuadTreeTileSource__ctor_System_String_System_String_System_Int32_System_Int32_" data-uid="C1.WPF.Maps.QuadTreeTileSource.#ctor(System.String,System.String,System.Int32,System.Int32)">QuadTreeTileSource(string, string, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new QuadTreeTileSource.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected QuadTreeTileSource(string uriFormat, string code, int size, int tileSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(uriFormat As String, code As String, size As Integer, tileSize As Integer)</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">uriFormat</span></td>
      <td><p>A string with the format of the tile URLs.
It must have two string.Format place holder. The first is for the server number (a random number from 0 to 3),
the second parameter is the quad tree access string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">code</span></td>
      <td><p>A four character string containing the characters for the tiles in the following order:
upper left, lower left, upper right and lower right.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The side length in pixels of the source image at the maximum zoom level.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">tileSize</span></td>
      <td><p>The side length, in pixels, of a tile.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
