# GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule" class="text-break">MapAppearanceRule Class
</h1>
  <div class="markdown level0 summary"><p>Defines the appearance rule for spatial elements based on a data field</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">MapAppearanceRule</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapColorRule.html">MapColorRule</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapMarkerRule.html">MapMarkerRule</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapSizeRule.html">MapSizeRule</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class MapAppearanceRule</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.-ctor.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule__ctor">MapAppearanceRule()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.html">MapAppearanceRule</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_ActiveReports_PageReportModel_MapAppearanceRule_BucketCount" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.BucketCount">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.BucketCount.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_BucketCount">BucketCount</a>
        </td>
        <td class="markdown level1 summary"><p>Defines the number of buckets for the specified distribution.
Ignored if <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DistributionType.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DistributionType">DistributionType</a>  is <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Custom.html">Custom</a> or if <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DataValue.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DataValue">DataValue</a> is not Scalar.
An expression should evaluate to an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>.
The default value is 5</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DataElementName" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DataElementName">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DataElementName.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DataElementName">DataElementName</a>
        </td>
        <td class="markdown level1 summary"><p>The name to use for the data element/attribute for this value.
Must be a CLS-compliant identifier.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DataElementOutput" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DataElementOutput">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DataElementOutput.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DataElementOutput">DataElementOutput</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the item should appear in a data rendering.
That evaluates to one of <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataElementOutput.html">DataElementOutput</a>.
The default value is <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataElementOutput.html#GrapeCity_ActiveReports_PageReportModel_DataElementOutput_Output">Output</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DataValue" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DataValue">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DataValue.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DataValue">DataValue</a>
        </td>
        <td class="markdown level1 summary"><p>An expression to be evaluated on the scope of the spatial element.
The appearance rule will be applied on the element based on its value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DistributionType" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DistributionType">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DistributionType.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DistributionType">DistributionType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the distribution type.
That evaluates to one of the values in <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapRuleDistributionType.html">MapRuleDistributionType</a>.
The default value is <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapRuleDistributionType.html#GrapeCity_ActiveReports_PageReportModel_MapRuleDistributionType_Optimal">Optimal</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_EndValue" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.EndValue">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.EndValue.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_EndValue">EndValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the end value for the distribution. Automatically calculated if omitted.
Ignored if <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DistributionType.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DistributionType">DistributionType</a> = <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Custom.html">Custom</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_LegendName" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.LegendName">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.LegendName.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_LegendName">LegendName</a>
        </td>
        <td class="markdown level1 summary"><p>Name of the legend in which the data field will appear.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_LegendText" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.LegendText">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.LegendText.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_LegendText">LegendText</a>
        </td>
        <td class="markdown level1 summary"><p>Label to use in the legend for the  data field.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_MapBuckets" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.MapBuckets">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.MapBuckets.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_MapBuckets">MapBuckets</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the set of buckets used to distribute the data.
Mandatory if <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DistributionType.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DistributionType">DistributionType</a> = <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Custom.html">Custom</a>, otherwise ignored.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_StartValue" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.StartValue">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.StartValue.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_StartValue">StartValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the start value for the distribution. Automatically calculated if omitted.
Ignored if <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.DistributionType.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_DistributionType">DistributionType</a> = <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Custom.html">Custom</a>.</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_ActiveReports_PageReportModel_MapAppearanceRule_GetExpressions" data-uid="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.GetExpressions">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.MapAppearanceRule.GetExpressions.html#GrapeCity_ActiveReports_PageReportModel_MapAppearanceRule_GetExpressions">GetExpressions()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the expressions.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>

</div>
