# C1.WPF.C1Chart.Axis.AnnoCreated

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_C1Chart_Axis_AnnoCreated" data-uid="C1.WPF.C1Chart.Axis.AnnoCreated" class="text-break">AnnoCreated Event
</h1>
<div class="markdown level0 summary"><p>Fires when annotation label was created.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.C1Chart.html">C1.WPF.C1Chart</a></h6>
<h6><strong>Assembly</strong>: C1.WPF.C1Chart.4.6.2.dll</h6>
<h5 id="C1_WPF_C1Chart_Axis_AnnoCreated_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event AnnoCreatedEventHandler AnnoCreated</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event AnnoCreated As AnnoCreatedEventHandler</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.WPF.C1Chart.AnnoCreatedEventHandler.html">AnnoCreatedEventHandler</a></td>
      <td>Fires when annotation label was created.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_C1Chart_Axis_AnnoCreated_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>In the event handler it's possible to customize appearance of the label
created by default.</p>
</div>
<h5 id="C1_WPF_C1Chart_Axis_AnnoCreated_examples"><strong>Examples</strong></h5>
<p>The following code sets color of labels depending on its values.</p>
<pre><code class="lang-csharp">chart.View.AxisY.AnnoCreated += (s, e) =&gt;
  {
    var label = (TextBlock)e.Label;
    if (e.Value &gt;= 0)
      label.Foreground = Brushes.Red;
    else
      label.Foreground = Brushes.Blue;
  };</code></pre>

</div>
