# C1.Win.Map.Style

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Map_Style" data-uid="C1.Win.Map.Style" class="text-break">Style Class
</h1>
  <div class="markdown level0 summary"><p>Represents the appearance of map elements.</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"><a class="xref" href="C1.Win.Map.NotifyObject.html">NotifyObject</a></div>
    <div class="level2"><a class="xref" href="C1.Win.Map.StyleObject.html">StyleObject</a></div>
    <div class="level3"><span class="xref">Style</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.FlexMap.IMapStyle.html">IMapStyle</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Map.html">C1.Win.Map</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Map.10.dll</h6>
  <h5 id="C1_Win_Map_Style_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class Style : StyleObject, IMapStyle</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(ExpandableObjectConverter))&gt;
Public Class Style
    Inherits StyleObject
    Implements IMapStyle</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="C1_Win_Map_Style__ctor_C1_Win_Map_Style_" data-uid="C1.Win.Map.Style.#ctor(C1.Win.Map.Style)">
          <a class="xref" href="C1.Win.Map.Style.-ctor.html#C1_Win_Map_Style__ctor_C1_Win_Map_Style_">Style(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Win.Map.Style.html">Style</a> object.</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="C1_Win_Map_Style_Alignment" data-uid="C1.Win.Map.Style.Alignment">
          <a class="xref" href="C1.Win.Map.Style.Alignment.html#C1_Win_Map_Style_Alignment">Alignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the alignment of the content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_BackColor" data-uid="C1.Win.Map.Style.BackColor">
          <a class="xref" href="C1.Win.Map.Style.BackColor.html#C1_Win_Map_Style_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_BackColor2" data-uid="C1.Win.Map.Style.BackColor2">
          <a class="xref" href="C1.Win.Map.Style.BackColor2.html#C1_Win_Map_Style_BackColor2">BackColor2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second gradient background color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_Border" data-uid="C1.Win.Map.Style.Border">
          <a class="xref" href="C1.Win.Map.Style.Border.html#C1_Win_Map_Style_Border">Border</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the border object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_Font" data-uid="C1.Win.Map.Style.Font">
          <a class="xref" href="C1.Win.Map.Style.Font.html#C1_Win_Map_Style_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ForeColor" data-uid="C1.Win.Map.Style.ForeColor">
          <a class="xref" href="C1.Win.Map.Style.ForeColor.html#C1_Win_Map_Style_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the foreground color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_GradientStyle" data-uid="C1.Win.Map.Style.GradientStyle">
          <a class="xref" href="C1.Win.Map.Style.GradientStyle.html#C1_Win_Map_Style_GradientStyle">GradientStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of gradient background filling.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_Stroke" data-uid="C1.Win.Map.Style.Stroke">
          <a class="xref" href="C1.Win.Map.Style.Stroke.html#C1_Win_Map_Style_Stroke">Stroke</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the line object for stroke line.</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="C1_Win_Map_Style_ResetAlignment" data-uid="C1.Win.Map.Style.ResetAlignment">
          <a class="xref" href="C1.Win.Map.Style.ResetAlignment.html#C1_Win_Map_Style_ResetAlignment">ResetAlignment()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the Alignment to default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ResetBackColor" data-uid="C1.Win.Map.Style.ResetBackColor">
          <a class="xref" href="C1.Win.Map.Style.ResetBackColor.html#C1_Win_Map_Style_ResetBackColor">ResetBackColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the BackColor to default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ResetBackColor2" data-uid="C1.Win.Map.Style.ResetBackColor2">
          <a class="xref" href="C1.Win.Map.Style.ResetBackColor2.html#C1_Win_Map_Style_ResetBackColor2">ResetBackColor2()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the BackColor2 to default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ResetBorder" data-uid="C1.Win.Map.Style.ResetBorder">
          <a class="xref" href="C1.Win.Map.Style.ResetBorder.html#C1_Win_Map_Style_ResetBorder">ResetBorder()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the Border to default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ResetFont" data-uid="C1.Win.Map.Style.ResetFont">
          <a class="xref" href="C1.Win.Map.Style.ResetFont.html#C1_Win_Map_Style_ResetFont">ResetFont()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the Font to default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ResetForeColor" data-uid="C1.Win.Map.Style.ResetForeColor">
          <a class="xref" href="C1.Win.Map.Style.ResetForeColor.html#C1_Win_Map_Style_ResetForeColor">ResetForeColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the ForeColor to default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ResetGradientStyle" data-uid="C1.Win.Map.Style.ResetGradientStyle">
          <a class="xref" href="C1.Win.Map.Style.ResetGradientStyle.html#C1_Win_Map_Style_ResetGradientStyle">ResetGradientStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the GradientStyle to default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ResetStroke" data-uid="C1.Win.Map.Style.ResetStroke">
          <a class="xref" href="C1.Win.Map.Style.ResetStroke.html#C1_Win_Map_Style_ResetStroke">ResetStroke()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the Stroke to default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ShouldSerializeAlignment" data-uid="C1.Win.Map.Style.ShouldSerializeAlignment">
          <a class="xref" href="C1.Win.Map.Style.ShouldSerializeAlignment.html#C1_Win_Map_Style_ShouldSerializeAlignment">ShouldSerializeAlignment()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if Alignment is in default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ShouldSerializeBackColor" data-uid="C1.Win.Map.Style.ShouldSerializeBackColor">
          <a class="xref" href="C1.Win.Map.Style.ShouldSerializeBackColor.html#C1_Win_Map_Style_ShouldSerializeBackColor">ShouldSerializeBackColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if BackColor is in default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ShouldSerializeBackColor2" data-uid="C1.Win.Map.Style.ShouldSerializeBackColor2">
          <a class="xref" href="C1.Win.Map.Style.ShouldSerializeBackColor2.html#C1_Win_Map_Style_ShouldSerializeBackColor2">ShouldSerializeBackColor2()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if BackColor2 is in default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ShouldSerializeBorder" data-uid="C1.Win.Map.Style.ShouldSerializeBorder">
          <a class="xref" href="C1.Win.Map.Style.ShouldSerializeBorder.html#C1_Win_Map_Style_ShouldSerializeBorder">ShouldSerializeBorder()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if Border is in default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ShouldSerializeFont" data-uid="C1.Win.Map.Style.ShouldSerializeFont">
          <a class="xref" href="C1.Win.Map.Style.ShouldSerializeFont.html#C1_Win_Map_Style_ShouldSerializeFont">ShouldSerializeFont()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if Font is in default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ShouldSerializeForeColor" data-uid="C1.Win.Map.Style.ShouldSerializeForeColor">
          <a class="xref" href="C1.Win.Map.Style.ShouldSerializeForeColor.html#C1_Win_Map_Style_ShouldSerializeForeColor">ShouldSerializeForeColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if ForeColor is in default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ShouldSerializeGradientStyle" data-uid="C1.Win.Map.Style.ShouldSerializeGradientStyle">
          <a class="xref" href="C1.Win.Map.Style.ShouldSerializeGradientStyle.html#C1_Win_Map_Style_ShouldSerializeGradientStyle">ShouldSerializeGradientStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if GradientStyle is in default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Map_Style_ShouldSerializeStroke" data-uid="C1.Win.Map.Style.ShouldSerializeStroke">
          <a class="xref" href="C1.Win.Map.Style.ShouldSerializeStroke.html#C1_Win_Map_Style_ShouldSerializeStroke">ShouldSerializeStroke()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if Stroke is in default state.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
