# C1.Xamarin.Forms.Chart.Interaction.C1LineMarker

## Content

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



  <h1 id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker" class="text-break">C1LineMarker Class
</h1>
  <div class="markdown level0 summary"><p>Represents an extension of the LineMarker for the FlexChart.</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">C1LineMarker</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Xamarin.Forms.Chart.IChartLayer.html">IChartLayer</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.html">C1.Xamarin.Forms.Chart.Interaction</a></h6>
  <h6><strong>Assembly</strong>: C1.Xamarin.Forms.Chart.dll</h6>
  <h5 id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1LineMarker : View, IChartLayer</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_Xamarin_Forms_Chart_Interaction_C1LineMarker__ctor" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.#ctor">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.-ctor.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker__ctor">C1LineMarker()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of LineMarker.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_AlignmentProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.AlignmentProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.AlignmentProperty.html">AlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the Alignment dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_ContentProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.ContentProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.ContentProperty.html">ContentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the Content dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragContentProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragContentProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragContentProperty.html">DragContentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the DragContent dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragLinesProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragLinesProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragLinesProperty.html">DragLinesProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the DragLines dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragThresholdProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragThresholdProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragThresholdProperty.html">DragThresholdProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the DragThreshold dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_HorizontalLineStyleProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.HorizontalLineStyleProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.HorizontalLineStyleProperty.html">HorizontalLineStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the Vertical line style dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_HorizontalPositionProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.HorizontalPositionProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.HorizontalPositionProperty.html">HorizontalPositionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the HorizontalPosition dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_InteractionProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.InteractionProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.InteractionProperty.html">InteractionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the Interaction dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_LinesProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.LinesProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.LinesProperty.html">LinesProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the Lines dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_VerticalLineStyleProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.VerticalLineStyleProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.VerticalLineStyleProperty.html">VerticalLineStyleProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the Vertical line style dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_VerticalPositionProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.VerticalPositionProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.VerticalPositionProperty.html">VerticalPositionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the VerticalPosition dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_XProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.XProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.XProperty.html">XProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_YProperty" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.YProperty">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.YProperty.html">YProperty</a>
        </td>
        <td class="markdown level1 summary"></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_Xamarin_Forms_Chart_Interaction_C1LineMarker_Alignment" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Alignment">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Alignment.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Alignment">Alignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the alignment of the LineMarker content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Content" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Content">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Content.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Content">Content</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the content function that allows you to customize the text content of the LineMarker.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragContent" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragContent">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragContent.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragContent">DragContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the content of the marker is draggable when the interaction mode is &quot;Drag&quot;.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragLines" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragLines">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragLines.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragLines">DragLines</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the lines are linked when the horizontal or vertical line is dragged when the interaction mode is &quot;Drag&quot;.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragThreshold" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragThreshold">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.DragThreshold.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_DragThreshold">DragThreshold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum distance from the horizontal or vertical line that the marker can be dragged.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_HorizontalLineStyle" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.HorizontalLineStyle">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.HorizontalLineStyle.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_HorizontalLineStyle">HorizontalLineStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or set the Style of horizontal line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_HorizontalPosition" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.HorizontalPosition">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.HorizontalPosition.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_HorizontalPosition">HorizontalPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the horizontal position of the LineMarker relative to the plot area.
Its value range is (0, 1).If set this value,then the line marker's horizontal position is fixed.
If the value is null or undefined and interaction is set to LineMarkerInteraction.Move or LineMarkerInteraction.Drag,
the horizontal position of the marker is calculated automatically based on the pointer's position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Interaction" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Interaction">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Interaction.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Interaction">Interaction</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the interaction mode of the LineMarker.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Lines" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Lines">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Lines.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Lines">Lines</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the visibility of the LineMarker lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_VerticalLineStyle" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.VerticalLineStyle">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.VerticalLineStyle.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_VerticalLineStyle">VerticalLineStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or set the Style of vertical line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_VerticalPosition" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.VerticalPosition">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.VerticalPosition.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_VerticalPosition">VerticalPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the vertical position of the LineMarker relative to the plot area.
Its value range is (0, 1). If set this value,then the line marker's vertical position is fixed.
If the value is null or undefined and interaction is set to LineMarkerInteraction.Move or LineMarkerInteraction.Drag,
the vertical position of the LineMarker is calculated automatically based on the pointer's position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_X" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.X">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.X.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_X">X</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current x-value as chart data coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Y" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Y">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.Y.html#C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_Y">Y</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current y-value as chart data coordinates.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Xamarin_Forms_Chart_Interaction_C1LineMarker_PositionChanged" data-uid="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.PositionChanged">
          <a class="xref" href="C1.Xamarin.Forms.Chart.Interaction.C1LineMarker.PositionChanged.html">PositionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the LineMarker's position changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
