# C1.Win.Schedule.BeforeAppointmentFormatEventArgs.CustomIcon

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Schedule_BeforeAppointmentFormatEventArgs_CustomIcon_" data-uid="C1.Win.Schedule.BeforeAppointmentFormatEventArgs.CustomIcon*">CustomIcon Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Schedule_BeforeAppointmentFormatEventArgs_CustomIcon_" data-uid="C1.Win.Schedule.BeforeAppointmentFormatEventArgs.CustomIcon*"></a>
<h4 id="C1_Win_Schedule_BeforeAppointmentFormatEventArgs_CustomIcon" data-uid="C1.Win.Schedule.BeforeAppointmentFormatEventArgs.CustomIcon">CustomIcon</h4>
<div class="markdown level1 summary"><p>Gets or sets custom icon to show in appointment element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Image CustomIcon { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property CustomIcon As Image</code></pre>
</div>
<h5 id="C1_Win_Schedule_BeforeAppointmentFormatEventArgs_CustomIcon_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>To show this icon, make sure that <a class="xref" href="C1.Win.Schedule.AppointmentIcons.html">AppointmentIcons</a> property includes <a class="xref" href="C1.Win.Schedule.AppointmentIcons.html#C1_Win_Schedule_AppointmentIcons_Custom">Custom</a> flag.</p>
</div>
<h5 id="C1_Win_Schedule_BeforeAppointmentFormatEventArgs_CustomIcon_examples">Examples</h5>
<p>The code below shows how to use image from application embedded resources as appointment icon.
<pre><code class="lang-csharp">void c1Schedule1_BeforeAppointmentFormat(object sender, BeforeAppointmentFormatEventArgs e)
{
e.Icons = AppointmentIcons.Custom;
e.CustomIcon = C1.Win.Schedule.Utils.GetImage(System.Reflection.Assembly.GetExecutingAssembly(), &quot;Flower.jpg&quot;);
}</code></pre>

</div>
