# C1.WPF.Chart.Interaction.C1LineMarker

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Chart_Interaction_C1LineMarker" data-uid="C1.WPF.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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><span class="xref">C1LineMarker</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="C1.WPF.Chart.IChartLayer.html">IChartLayer</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Chart.Interaction.html">C1.WPF.Chart.Interaction</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Chart.dll</h6>
  <h5 id="C1_WPF_Chart_Interaction_C1LineMarker_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;Root&quot;, Type = typeof(Canvas))]
[TemplatePart(Name = &quot;VerticalLine&quot;, Type = typeof(Line))]
[TemplatePart(Name = &quot;HorizontalLine&quot;, Type = typeof(Line))]
[TemplatePart(Name = &quot;Content&quot;, Type = typeof(Border))]
public class C1LineMarker : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IChartLayer</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;Root&quot;, Type:=GetType(Canvas))&gt;
&lt;TemplatePart(Name:=&quot;VerticalLine&quot;, Type:=GetType(Line))&gt;
&lt;TemplatePart(Name:=&quot;HorizontalLine&quot;, Type:=GetType(Line))&gt;
&lt;TemplatePart(Name:=&quot;Content&quot;, Type:=GetType(Border))&gt;
Public Class C1LineMarker
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, 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_WPF_Chart_Interaction_C1LineMarker__ctor" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.#ctor">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.-ctor.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_AlignmentProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.AlignmentProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.AlignmentProperty.html">AlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Alignment.html#C1_WPF_Chart_Interaction_C1LineMarker_Alignment">Alignment</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_ContentProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.ContentProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.ContentProperty.html">ContentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Content.html#C1_WPF_Chart_Interaction_C1LineMarker_Content">Content</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_DragContentProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.DragContentProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragContentProperty.html">DragContentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragContent.html#C1_WPF_Chart_Interaction_C1LineMarker_DragContent">DragContent</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_DragLinesProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.DragLinesProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragLinesProperty.html">DragLinesProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragLines.html#C1_WPF_Chart_Interaction_C1LineMarker_DragLines">DragLines</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_DragThresholdProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.DragThresholdProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragThresholdProperty.html">DragThresholdProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragThreshold.html#C1_WPF_Chart_Interaction_C1LineMarker_DragThreshold">DragThreshold</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_HorizontalPositionProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.HorizontalPositionProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.HorizontalPositionProperty.html">HorizontalPositionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.HorizontalPosition.html#C1_WPF_Chart_Interaction_C1LineMarker_HorizontalPosition">HorizontalPosition</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_InteractionProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.InteractionProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.InteractionProperty.html">InteractionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Interaction.html#C1_WPF_Chart_Interaction_C1LineMarker_Interaction">Interaction</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_LineBrushProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.LineBrushProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.LineBrushProperty.html">LineBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the LineBrush dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_LineWidthProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.LineWidthProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.LineWidthProperty.html">LineWidthProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.LineWidth.html#C1_WPF_Chart_Interaction_C1LineMarker_LineWidth">LineWidth</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_LinesProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.LinesProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.LinesProperty.html">LinesProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Lines.html#C1_WPF_Chart_Interaction_C1LineMarker_Lines">Lines</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_VerticalPositionProperty" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.VerticalPositionProperty">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.VerticalPositionProperty.html">VerticalPositionProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.VerticalPosition.html#C1_WPF_Chart_Interaction_C1LineMarker_VerticalPosition">VerticalPosition</a> dependency property.</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_WPF_Chart_Interaction_C1LineMarker_Alignment" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.Alignment">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Alignment.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_Content" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.Content">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Content.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_DragContent" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.DragContent">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragContent.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_DragLines" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.DragLines">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragLines.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_DragThreshold" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.DragThreshold">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.DragThreshold.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_HorizontalPosition" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.HorizontalPosition">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.HorizontalPosition.html#C1_WPF_Chart_Interaction_C1LineMarker_HorizontalPosition">HorizontalPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the position of horizontal line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_Interaction" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.Interaction">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Interaction.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_LineBrush" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.LineBrush">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.LineBrush.html#C1_WPF_Chart_Interaction_C1LineMarker_LineBrush">LineBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the line brush.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_LineWidth" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.LineWidth">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.LineWidth.html#C1_WPF_Chart_Interaction_C1LineMarker_LineWidth">LineWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the line width.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_Lines" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.Lines">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Lines.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_VerticalPosition" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.VerticalPosition">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.VerticalPosition.html#C1_WPF_Chart_Interaction_C1LineMarker_VerticalPosition">VerticalPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or set the position of vertical line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_X" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.X">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.X.html#C1_WPF_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_WPF_Chart_Interaction_C1LineMarker_Y" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.Y">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.Y.html#C1_WPF_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="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_WPF_Chart_Interaction_C1LineMarker_OnApplyTemplate" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.OnApplyTemplate.html#C1_WPF_Chart_Interaction_C1LineMarker_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.html">C1LineMarker</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Chart_Interaction_C1LineMarker_OnPositionChanged_System_Boolean_" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.OnPositionChanged(System.Boolean)">
          <a class="xref" href="C1.WPF.Chart.Interaction.C1LineMarker.OnPositionChanged.html#C1_WPF_Chart_Interaction_C1LineMarker_OnPositionChanged_System_Boolean_">OnPositionChanged(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Raise the PositionChanged event.</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_WPF_Chart_Interaction_C1LineMarker_PositionChanged" data-uid="C1.WPF.Chart.Interaction.C1LineMarker.PositionChanged">
          <a class="xref" href="C1.WPF.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>
