# C1.Win.GanttView.BarStyle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_GanttView_BarStyle" data-uid="C1.Win.GanttView.BarStyle" class="text-break">BarStyle Class
</h1>
  <div class="markdown level0 summary"><p>Specifies style settings for drawing a bar on the Gantt Chart.</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">BarStyle</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.GanttView.html">C1.Win.GanttView</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.GanttView.10.dll</h6>
  <h5 id="C1_Win_GanttView_BarStyle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(BarStyleConverter))]
public class BarStyle : ICloneable, IDisposable, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(BarStyleConverter))&gt;
Public Class BarStyle
    Implements ICloneable, IDisposable, INotifyPropertyChanged</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_GanttView_BarStyle__ctor" data-uid="C1.Win.GanttView.BarStyle.#ctor">
          <a class="xref" href="C1.Win.GanttView.BarStyle.-ctor.html#C1_Win_GanttView_BarStyle__ctor">BarStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.GanttView.BarStyle.html">BarStyle</a>.</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_GanttView_BarStyle_AdaptiveBarHeight" data-uid="C1.Win.GanttView.BarStyle.AdaptiveBarHeight">
          <a class="xref" href="C1.Win.GanttView.BarStyle.AdaptiveBarHeight.html#C1_Win_GanttView_BarStyle_AdaptiveBarHeight">AdaptiveBarHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the bar height will be adapted according to C1GantView Font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BarColor" data-uid="C1.Win.GanttView.BarStyle.BarColor">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BarColor.html#C1_Win_GanttView_BarStyle_BarColor">BarColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color for the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BarHeight" data-uid="C1.Win.GanttView.BarStyle.BarHeight">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BarHeight.html#C1_Win_GanttView_BarStyle_BarHeight">BarHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of task bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BarPattern" data-uid="C1.Win.GanttView.BarStyle.BarPattern">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BarPattern.html#C1_Win_GanttView_BarStyle_BarPattern">BarPattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the hatch style used for filling the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BarShape" data-uid="C1.Win.GanttView.BarStyle.BarShape">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BarShape.html#C1_Win_GanttView_BarStyle_BarShape">BarShape</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the shape of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BarType" data-uid="C1.Win.GanttView.BarStyle.BarType">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BarType.html#C1_Win_GanttView_BarStyle_BarType">BarType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating the target bar type for the <a class="xref" href="C1.Win.GanttView.BarStyle.html">BarStyle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BottomText1" data-uid="C1.Win.GanttView.BarStyle.BottomText1">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BottomText1.html#C1_Win_GanttView_BarStyle_BottomText1">BottomText1</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column displayed below the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BottomText1_ID" data-uid="C1.Win.GanttView.BarStyle.BottomText1_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BottomText1_ID.html#C1_Win_GanttView_BarStyle_BottomText1_ID">BottomText1_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column ID displayed below the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BottomText2" data-uid="C1.Win.GanttView.BarStyle.BottomText2">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BottomText2.html#C1_Win_GanttView_BarStyle_BottomText2">BottomText2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column displayed below the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_BottomText2_ID" data-uid="C1.Win.GanttView.BarStyle.BottomText2_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.BottomText2_ID.html#C1_Win_GanttView_BarStyle_BottomText2_ID">BottomText2_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column ID displayed below the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_CenterText1" data-uid="C1.Win.GanttView.BarStyle.CenterText1">
          <a class="xref" href="C1.Win.GanttView.BarStyle.CenterText1.html#C1_Win_GanttView_BarStyle_CenterText1">CenterText1</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column displayed inside the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_CenterText1_ID" data-uid="C1.Win.GanttView.BarStyle.CenterText1_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.CenterText1_ID.html#C1_Win_GanttView_BarStyle_CenterText1_ID">CenterText1_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column ID displayed inside the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_CenterText2" data-uid="C1.Win.GanttView.BarStyle.CenterText2">
          <a class="xref" href="C1.Win.GanttView.BarStyle.CenterText2.html#C1_Win_GanttView_BarStyle_CenterText2">CenterText2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column displayed inside the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_CenterText2_ID" data-uid="C1.Win.GanttView.BarStyle.CenterText2_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.CenterText2_ID.html#C1_Win_GanttView_BarStyle_CenterText2_ID">CenterText2_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column ID displayed inside the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_EndColor" data-uid="C1.Win.GanttView.BarStyle.EndColor">
          <a class="xref" href="C1.Win.GanttView.BarStyle.EndColor.html#C1_Win_GanttView_BarStyle_EndColor">EndColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color for the shape at the bar end.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_EndPattern" data-uid="C1.Win.GanttView.BarStyle.EndPattern">
          <a class="xref" href="C1.Win.GanttView.BarStyle.EndPattern.html#C1_Win_GanttView_BarStyle_EndPattern">EndPattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the hatch style used for filling the shape at the bar end.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_EndShape" data-uid="C1.Win.GanttView.BarStyle.EndShape">
          <a class="xref" href="C1.Win.GanttView.BarStyle.EndShape.html#C1_Win_GanttView_BarStyle_EndShape">EndShape</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the shape for the bar end.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_LeftText1" data-uid="C1.Win.GanttView.BarStyle.LeftText1">
          <a class="xref" href="C1.Win.GanttView.BarStyle.LeftText1.html#C1_Win_GanttView_BarStyle_LeftText1">LeftText1</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column displayed to the left of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_LeftText1_ID" data-uid="C1.Win.GanttView.BarStyle.LeftText1_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.LeftText1_ID.html#C1_Win_GanttView_BarStyle_LeftText1_ID">LeftText1_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column ID displayed to the left of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_LeftText2" data-uid="C1.Win.GanttView.BarStyle.LeftText2">
          <a class="xref" href="C1.Win.GanttView.BarStyle.LeftText2.html#C1_Win_GanttView_BarStyle_LeftText2">LeftText2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column displayed to the left of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_LeftText2_ID" data-uid="C1.Win.GanttView.BarStyle.LeftText2_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.LeftText2_ID.html#C1_Win_GanttView_BarStyle_LeftText2_ID">LeftText2_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column ID displayed to the left of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_RightText1" data-uid="C1.Win.GanttView.BarStyle.RightText1">
          <a class="xref" href="C1.Win.GanttView.BarStyle.RightText1.html#C1_Win_GanttView_BarStyle_RightText1">RightText1</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column displayed to the right of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_RightText1_ID" data-uid="C1.Win.GanttView.BarStyle.RightText1_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.RightText1_ID.html#C1_Win_GanttView_BarStyle_RightText1_ID">RightText1_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column ID displayed to the right of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_RightText2" data-uid="C1.Win.GanttView.BarStyle.RightText2">
          <a class="xref" href="C1.Win.GanttView.BarStyle.RightText2.html#C1_Win_GanttView_BarStyle_RightText2">RightText2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column displayed to the right of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_RightText2_ID" data-uid="C1.Win.GanttView.BarStyle.RightText2_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.RightText2_ID.html#C1_Win_GanttView_BarStyle_RightText2_ID">RightText2_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column ID displayed to the right of the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_StartColor" data-uid="C1.Win.GanttView.BarStyle.StartColor">
          <a class="xref" href="C1.Win.GanttView.BarStyle.StartColor.html#C1_Win_GanttView_BarStyle_StartColor">StartColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color for the shape at the bar start.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_StartPattern" data-uid="C1.Win.GanttView.BarStyle.StartPattern">
          <a class="xref" href="C1.Win.GanttView.BarStyle.StartPattern.html#C1_Win_GanttView_BarStyle_StartPattern">StartPattern</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the hatch style used for filling the shape at the bar start.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_StartShape" data-uid="C1.Win.GanttView.BarStyle.StartShape">
          <a class="xref" href="C1.Win.GanttView.BarStyle.StartShape.html#C1_Win_GanttView_BarStyle_StartShape">StartShape</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the shape for the bar start.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_TopText1" data-uid="C1.Win.GanttView.BarStyle.TopText1">
          <a class="xref" href="C1.Win.GanttView.BarStyle.TopText1.html#C1_Win_GanttView_BarStyle_TopText1">TopText1</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column displayed above the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_TopText1_ID" data-uid="C1.Win.GanttView.BarStyle.TopText1_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.TopText1_ID.html#C1_Win_GanttView_BarStyle_TopText1_ID">TopText1_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the column ID displayed above the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_TopText2" data-uid="C1.Win.GanttView.BarStyle.TopText2">
          <a class="xref" href="C1.Win.GanttView.BarStyle.TopText2.html#C1_Win_GanttView_BarStyle_TopText2">TopText2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column displayed above the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_TopText2_ID" data-uid="C1.Win.GanttView.BarStyle.TopText2_ID">
          <a class="xref" href="C1.Win.GanttView.BarStyle.TopText2_ID.html#C1_Win_GanttView_BarStyle_TopText2_ID">TopText2_ID</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the second column ID displayed above the bar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_UseCommonBarHeightSettings" data-uid="C1.Win.GanttView.BarStyle.UseCommonBarHeightSettings">
          <a class="xref" href="C1.Win.GanttView.BarStyle.UseCommonBarHeightSettings.html#C1_Win_GanttView_BarStyle_UseCommonBarHeightSettings">UseCommonBarHeightSettings</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the common layout bar height settings will be used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_View" data-uid="C1.Win.GanttView.BarStyle.View">
          <a class="xref" href="C1.Win.GanttView.BarStyle.View.html#C1_Win_GanttView_BarStyle_View">View</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the owner <a class="xref" href="C1.Win.GanttView.C1GanttView.html">C1GanttView</a>.</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_GanttView_BarStyle_Clone" data-uid="C1.Win.GanttView.BarStyle.Clone">
          <a class="xref" href="C1.Win.GanttView.BarStyle.Clone.html#C1_Win_GanttView_BarStyle_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new object that is a copy of the current instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_Dispose" data-uid="C1.Win.GanttView.BarStyle.Dispose">
          <a class="xref" href="C1.Win.GanttView.BarStyle.Dispose.html#C1_Win_GanttView_BarStyle_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_OnPropertyChanged_System_ComponentModel_PropertyChangedEventArgs_" data-uid="C1.Win.GanttView.BarStyle.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)">
          <a class="xref" href="C1.Win.GanttView.BarStyle.OnPropertyChanged.html#C1_Win_GanttView_BarStyle_OnPropertyChanged_System_ComponentModel_PropertyChangedEventArgs_">OnPropertyChanged(PropertyChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.GanttView.BarStyle.PropertyChanged.html">PropertyChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_ResetBarColor" data-uid="C1.Win.GanttView.BarStyle.ResetBarColor">
          <a class="xref" href="C1.Win.GanttView.BarStyle.ResetBarColor.html#C1_Win_GanttView_BarStyle_ResetBarColor">ResetBarColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the value of the <a class="xref" href="C1.Win.GanttView.BarStyle.BarColor.html#C1_Win_GanttView_BarStyle_BarColor">BarColor</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_ResetEndColor" data-uid="C1.Win.GanttView.BarStyle.ResetEndColor">
          <a class="xref" href="C1.Win.GanttView.BarStyle.ResetEndColor.html#C1_Win_GanttView_BarStyle_ResetEndColor">ResetEndColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the value of the <a class="xref" href="C1.Win.GanttView.BarStyle.EndColor.html#C1_Win_GanttView_BarStyle_EndColor">EndColor</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_GanttView_BarStyle_ResetStartColor" data-uid="C1.Win.GanttView.BarStyle.ResetStartColor">
          <a class="xref" href="C1.Win.GanttView.BarStyle.ResetStartColor.html#C1_Win_GanttView_BarStyle_ResetStartColor">ResetStartColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the value of the <a class="xref" href="C1.Win.GanttView.BarStyle.StartColor.html#C1_Win_GanttView_BarStyle_StartColor">StartColor</a> property.</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_GanttView_BarStyle_PropertyChanged" data-uid="C1.Win.GanttView.BarStyle.PropertyChanged">
          <a class="xref" href="C1.Win.GanttView.BarStyle.PropertyChanged.html">PropertyChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of a property changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
