# C1.Win.Chart.Interaction.LineMarker

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Chart_Interaction_LineMarker" data-uid="C1.Win.Chart.Interaction.LineMarker" class="text-break">LineMarker Class
</h1>
  <div class="markdown level0 summary"><p>The <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.html">LineMarker</a> class.</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="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><span class="xref">LineMarker</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Chart.Interaction.html">C1.Win.Chart.Interaction</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexChart.10.dll</h6>
  <h5 id="C1_Win_Chart_Interaction_LineMarker_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LineMarker : Component, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class LineMarker
    Inherits Component
    Implements IComponent, IDisposable</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_Chart_Interaction_LineMarker__ctor_C1_Win_Chart_FlexChart_" data-uid="C1.Win.Chart.Interaction.LineMarker.#ctor(C1.Win.Chart.FlexChart)">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.-ctor.html#C1_Win_Chart_Interaction_LineMarker__ctor_C1_Win_Chart_FlexChart_">LineMarker(FlexChart)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.html">LineMarker</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="C1_Win_Chart_Interaction_LineMarker_Alignment" data-uid="C1.Win.Chart.Interaction.LineMarker.Alignment">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Alignment.html#C1_Win_Chart_Interaction_LineMarker_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_Win_Chart_Interaction_LineMarker_BackColor" data-uid="C1.Win.Chart.Interaction.LineMarker.BackColor">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.BackColor.html#C1_Win_Chart_Interaction_LineMarker_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets background color of content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_Content" data-uid="C1.Win.Chart.Interaction.LineMarker.Content">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Content.html#C1_Win_Chart_Interaction_LineMarker_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_Win_Chart_Interaction_LineMarker_DragContent" data-uid="C1.Win.Chart.Interaction.LineMarker.DragContent">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.DragContent.html#C1_Win_Chart_Interaction_LineMarker_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_Win_Chart_Interaction_LineMarker_DragLines" data-uid="C1.Win.Chart.Interaction.LineMarker.DragLines">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.DragLines.html#C1_Win_Chart_Interaction_LineMarker_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_Win_Chart_Interaction_LineMarker_DragThreshold" data-uid="C1.Win.Chart.Interaction.LineMarker.DragThreshold">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.DragThreshold.html#C1_Win_Chart_Interaction_LineMarker_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_Win_Chart_Interaction_LineMarker_Font" data-uid="C1.Win.Chart.Interaction.LineMarker.Font">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Font.html#C1_Win_Chart_Interaction_LineMarker_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets font of content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_ForeColor" data-uid="C1.Win.Chart.Interaction.LineMarker.ForeColor">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.ForeColor.html#C1_Win_Chart_Interaction_LineMarker_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets font color of content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_HorizontalPosition" data-uid="C1.Win.Chart.Interaction.LineMarker.HorizontalPosition">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.HorizontalPosition.html#C1_Win_Chart_Interaction_LineMarker_HorizontalPosition">HorizontalPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets line marker horizontal position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_Interaction" data-uid="C1.Win.Chart.Interaction.LineMarker.Interaction">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Interaction.html#C1_Win_Chart_Interaction_LineMarker_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_Win_Chart_Interaction_LineMarker_LineColor" data-uid="C1.Win.Chart.Interaction.LineMarker.LineColor">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.LineColor.html#C1_Win_Chart_Interaction_LineMarker_LineColor">LineColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets color of lines.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_LineWidth" data-uid="C1.Win.Chart.Interaction.LineMarker.LineWidth">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.LineWidth.html#C1_Win_Chart_Interaction_LineMarker_LineWidth">LineWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets width of lines</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_Lines" data-uid="C1.Win.Chart.Interaction.LineMarker.Lines">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Lines.html#C1_Win_Chart_Interaction_LineMarker_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_Win_Chart_Interaction_LineMarker_VerticalPosition" data-uid="C1.Win.Chart.Interaction.LineMarker.VerticalPosition">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.VerticalPosition.html#C1_Win_Chart_Interaction_LineMarker_VerticalPosition">VerticalPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets line marker vertical position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_Visible" data-uid="C1.Win.Chart.Interaction.LineMarker.Visible">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Visible.html#C1_Win_Chart_Interaction_LineMarker_Visible">Visible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the visibility of the LineMarker.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_X" data-uid="C1.Win.Chart.Interaction.LineMarker.X">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.X.html#C1_Win_Chart_Interaction_LineMarker_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_Win_Chart_Interaction_LineMarker_Y" data-uid="C1.Win.Chart.Interaction.LineMarker.Y">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Y.html#C1_Win_Chart_Interaction_LineMarker_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="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_Chart_Interaction_LineMarker_GetVisibleRect_System_Windows_Forms_Control_" data-uid="C1.Win.Chart.Interaction.LineMarker.GetVisibleRect(System.Windows.Forms.Control)">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.GetVisibleRect.html#C1_Win_Chart_Interaction_LineMarker_GetVisibleRect_System_Windows_Forms_Control_">GetVisibleRect(Control)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the viewable area of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_OnPaint_System_Windows_Forms_PaintEventArgs_" data-uid="C1.Win.Chart.Interaction.LineMarker.OnPaint(System.Windows.Forms.PaintEventArgs)">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.OnPaint.html#C1_Win_Chart_Interaction_LineMarker_OnPaint_System_Windows_Forms_PaintEventArgs_">OnPaint(PaintEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.paint">Paint</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_OnPositionChanged_C1_Win_Chart_Interaction_PositionChangedEventArgs_" data-uid="C1.Win.Chart.Interaction.LineMarker.OnPositionChanged(C1.Win.Chart.Interaction.PositionChangedEventArgs)">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.OnPositionChanged.html#C1_Win_Chart_Interaction_LineMarker_OnPositionChanged_C1_Win_Chart_Interaction_PositionChangedEventArgs_">OnPositionChanged(PositionChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Fires the <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.PositionChanged.html">PositionChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_Remove" data-uid="C1.Win.Chart.Interaction.LineMarker.Remove">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Remove.html#C1_Win_Chart_Interaction_LineMarker_Remove">Remove()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes itself from parent control</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_Win_Chart_Interaction_LineMarker_Paint" data-uid="C1.Win.Chart.Interaction.LineMarker.Paint">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.Paint.html">Paint</a>
        </td>
        <td class="markdown level1 summary"><p>Custom drawing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Chart_Interaction_LineMarker_PositionChanged" data-uid="C1.Win.Chart.Interaction.LineMarker.PositionChanged">
          <a class="xref" href="C1.Win.Chart.Interaction.LineMarker.PositionChanged.html">PositionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when marker position was changed, allows to update content.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
