# C1.Win.C1Chart.Legend

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Chart_Legend" data-uid="C1.Win.C1Chart.Legend" class="text-break">Legend Class
</h1>
  <div class="markdown level0 summary"><p>Provides access to the customization of the legend for the chart.</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">Legend</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Chart.html">C1.Win.C1Chart</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Chart.4.8.dll</h6>
  <h5 id="C1_Win_C1Chart_Legend_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(c1ChartTypeConverter))]
public class Legend</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(c1ChartTypeConverter))&gt;
Public Class Legend</code></pre>
  </div>
  <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_C1Chart_Legend_Compass" data-uid="C1.Win.C1Chart.Legend.Compass">
          <a class="xref" href="C1.Win.C1Chart.Legend.Compass.html#C1_Win_C1Chart_Legend_Compass">Compass</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the general positioning of the legend.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_Location" data-uid="C1.Win.C1Chart.Legend.Location">
          <a class="xref" href="C1.Win.C1Chart.Legend.Location.html#C1_Win_C1Chart_Legend_Location">Location</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the location of the legend in chart control client coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_LocationDefault" data-uid="C1.Win.C1Chart.Legend.LocationDefault">
          <a class="xref" href="C1.Win.C1Chart.Legend.LocationDefault.html#C1_Win_C1Chart_Legend_LocationDefault">LocationDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the default location of the legend.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_Orientation" data-uid="C1.Win.C1Chart.Legend.Orientation">
          <a class="xref" href="C1.Win.C1Chart.Legend.Orientation.html#C1_Win_C1Chart_Legend_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the orientation of the legend entries.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_Reversed" data-uid="C1.Win.C1Chart.Legend.Reversed">
          <a class="xref" href="C1.Win.C1Chart.Legend.Reversed.html#C1_Win_C1Chart_Legend_Reversed">Reversed</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the order of the ChartGroups in the legend.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_Size" data-uid="C1.Win.C1Chart.Legend.Size">
          <a class="xref" href="C1.Win.C1Chart.Legend.Size.html#C1_Win_C1Chart_Legend_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of the legend in chart control client coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_SizeDefault" data-uid="C1.Win.C1Chart.Legend.SizeDefault">
          <a class="xref" href="C1.Win.C1Chart.Legend.SizeDefault.html#C1_Win_C1Chart_Legend_SizeDefault">SizeDefault</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the default size of the legend.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_Style" data-uid="C1.Win.C1Chart.Legend.Style">
          <a class="xref" href="C1.Win.C1Chart.Legend.Style.html#C1_Win_C1Chart_Legend_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the legend style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_Text" data-uid="C1.Win.C1Chart.Legend.Text">
          <a class="xref" href="C1.Win.C1Chart.Legend.Text.html#C1_Win_C1Chart_Legend_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the primary text of the legend.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_TooltipText" data-uid="C1.Win.C1Chart.Legend.TooltipText">
          <a class="xref" href="C1.Win.C1Chart.Legend.TooltipText.html#C1_Win_C1Chart_Legend_TooltipText">TooltipText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the tooltip text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_Visible" data-uid="C1.Win.C1Chart.Legend.Visible">
          <a class="xref" href="C1.Win.C1Chart.Legend.Visible.html#C1_Win_C1Chart_Legend_Visible">Visible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the legend visibility.</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_C1Chart_Legend_FunctionsFromCoord_System_Int32_System_Int32_System_Int32__System_Int32__" data-uid="C1.Win.C1Chart.Legend.FunctionsFromCoord(System.Int32,System.Int32,System.Int32@,System.Int32@)">
          <a class="xref" href="C1.Win.C1Chart.Legend.FunctionsFromCoord.html#C1_Win_C1Chart_Legend_FunctionsFromCoord_System_Int32_System_Int32_System_Int32__System_Int32__">FunctionsFromCoord(int, int, ref int, ref int)</a>
        </td>
        <td class="markdown level1 summary"><p>Obtains the group and function indices of the legend entry nearest to the specified client coordinates.
Mouse coordinates are specified in client coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_RectFromSeries_System_Int32_System_Int32_" data-uid="C1.Win.C1Chart.Legend.RectFromSeries(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.C1Chart.Legend.RectFromSeries.html#C1_Win_C1Chart_Legend_RectFromSeries_System_Int32_System_Int32_">RectFromSeries(int, int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_ResetLocationDefault" data-uid="C1.Win.C1Chart.Legend.ResetLocationDefault">
          <a class="xref" href="C1.Win.C1Chart.Legend.ResetLocationDefault.html#C1_Win_C1Chart_Legend_ResetLocationDefault">ResetLocationDefault()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the Legend location so it is calculated automatically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_ResetSizeDefault" data-uid="C1.Win.C1Chart.Legend.ResetSizeDefault">
          <a class="xref" href="C1.Win.C1Chart.Legend.ResetSizeDefault.html#C1_Win_C1Chart_Legend_ResetSizeDefault">ResetSizeDefault()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets Legend size so it is calculated automatically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_ResetStyle" data-uid="C1.Win.C1Chart.Legend.ResetStyle">
          <a class="xref" href="C1.Win.C1Chart.Legend.ResetStyle.html#C1_Win_C1Chart_Legend_ResetStyle">ResetStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets Legend style inheritance state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_SeriesFromCoord_System_Int32_System_Int32_System_Int32__System_Int32__" data-uid="C1.Win.C1Chart.Legend.SeriesFromCoord(System.Int32,System.Int32,System.Int32@,System.Int32@)">
          <a class="xref" href="C1.Win.C1Chart.Legend.SeriesFromCoord.html#C1_Win_C1Chart_Legend_SeriesFromCoord_System_Int32_System_Int32_System_Int32__System_Int32__">SeriesFromCoord(int, int, ref int, ref int)</a>
        </td>
        <td class="markdown level1 summary"><p>Obtains the group and series indices of the legend entry nearest to the specified client coordinates.
Mouse coordinates are specified in client coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_ShouldSerializeLocationDefault" data-uid="C1.Win.C1Chart.Legend.ShouldSerializeLocationDefault">
          <a class="xref" href="C1.Win.C1Chart.Legend.ShouldSerializeLocationDefault.html#C1_Win_C1Chart_Legend_ShouldSerializeLocationDefault">ShouldSerializeLocationDefault()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if the Legend LocationDefault property is in the default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_ShouldSerializeSizeDefault" data-uid="C1.Win.C1Chart.Legend.ShouldSerializeSizeDefault">
          <a class="xref" href="C1.Win.C1Chart.Legend.ShouldSerializeSizeDefault.html#C1_Win_C1Chart_Legend_ShouldSerializeSizeDefault">ShouldSerializeSizeDefault()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if the Legend <a class="xref" href="C1.Win.C1Chart.Legend.SizeDefault.html#C1_Win_C1Chart_Legend_SizeDefault">SizeDefault</a> property is in the default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_ShouldSerializeStyle" data-uid="C1.Win.C1Chart.Legend.ShouldSerializeStyle">
          <a class="xref" href="C1.Win.C1Chart.Legend.ShouldSerializeStyle.html#C1_Win_C1Chart_Legend_ShouldSerializeStyle">ShouldSerializeStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns false if the Legend <a class="xref" href="C1.Win.C1Chart.Legend.Style.html#C1_Win_C1Chart_Legend_Style">Style</a> property is in the default state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_Legend_TrendLinesFromCoord_System_Int32_System_Int32_System_Int32__System_Int32__" data-uid="C1.Win.C1Chart.Legend.TrendLinesFromCoord(System.Int32,System.Int32,System.Int32@,System.Int32@)">
          <a class="xref" href="C1.Win.C1Chart.Legend.TrendLinesFromCoord.html#C1_Win_C1Chart_Legend_TrendLinesFromCoord_System_Int32_System_Int32_System_Int32__System_Int32__">TrendLinesFromCoord(int, int, ref int, ref int)</a>
        </td>
        <td class="markdown level1 summary"><p>Obtains the group and trendline indices of the legend entry nearest to the specified client coordinates.
Mouse coordinates are specified in client coordinates.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
