# C1.WPF.FlexGrid.CellStyle

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_FlexGrid_CellStyle" data-uid="C1.WPF.FlexGrid.CellStyle" class="text-break">CellStyle Class
</h1>
  <div class="markdown level0 summary"><p>Defines attributes used to render grid cells.</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">CellStyle</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexGrid.4.6.2.dll</h6>
  <h5 id="C1_WPF_FlexGrid_CellStyle_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CellStyle : INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CellStyle
    Implements 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_WPF_FlexGrid_CellStyle__ctor" data-uid="C1.WPF.FlexGrid.CellStyle.#ctor">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.-ctor.html#C1_WPF_FlexGrid_CellStyle__ctor">CellStyle()</a>
        </td>
        <td class="markdown level1 summary"></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_FlexGrid_CellStyle_Background" data-uid="C1.WPF.FlexGrid.CellStyle.Background">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.Background.html#C1_WPF_FlexGrid_CellStyle_Background">Background</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to paint the cell background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_BorderBrush" data-uid="C1.WPF.FlexGrid.CellStyle.BorderBrush">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.BorderBrush.html#C1_WPF_FlexGrid_CellStyle_BorderBrush">BorderBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to render the cell borders.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_BorderThickness" data-uid="C1.WPF.FlexGrid.CellStyle.BorderThickness">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.BorderThickness.html#C1_WPF_FlexGrid_CellStyle_BorderThickness">BorderThickness</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.thickness">Thickness</a> of the cell borders.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_CornerRadius" data-uid="C1.WPF.FlexGrid.CellStyle.CornerRadius">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.CornerRadius.html#C1_WPF_FlexGrid_CellStyle_CornerRadius">CornerRadius</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.FlexGrid.CellStyle.CornerRadius.html#C1_WPF_FlexGrid_CellStyle_CornerRadius">CornerRadius</a> of the cell borders.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_FontFamily" data-uid="C1.WPF.FlexGrid.CellStyle.FontFamily">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.FontFamily.html#C1_WPF_FlexGrid_CellStyle_FontFamily">FontFamily</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.FlexGrid.CellStyle.FontFamily.html#C1_WPF_FlexGrid_CellStyle_FontFamily">FontFamily</a> used to render text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_FontSize" data-uid="C1.WPF.FlexGrid.CellStyle.FontSize">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.FontSize.html#C1_WPF_FlexGrid_CellStyle_FontSize">FontSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of the font used to render text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_FontStyle" data-uid="C1.WPF.FlexGrid.CellStyle.FontStyle">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.FontStyle.html#C1_WPF_FlexGrid_CellStyle_FontStyle">FontStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.FlexGrid.CellStyle.FontStyle.html#C1_WPF_FlexGrid_CellStyle_FontStyle">FontStyle</a> used to render text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_FontWeight" data-uid="C1.WPF.FlexGrid.CellStyle.FontWeight">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.FontWeight.html#C1_WPF_FlexGrid_CellStyle_FontWeight">FontWeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.FlexGrid.CellStyle.FontWeight.html#C1_WPF_FlexGrid_CellStyle_FontWeight">FontWeight</a> used to render text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_Foreground" data-uid="C1.WPF.FlexGrid.CellStyle.Foreground">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.Foreground.html#C1_WPF_FlexGrid_CellStyle_Foreground">Foreground</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> used to paint the cell text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_HorizontalAlignment" data-uid="C1.WPF.FlexGrid.CellStyle.HorizontalAlignment">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.HorizontalAlignment.html#C1_WPF_FlexGrid_CellStyle_HorizontalAlignment">HorizontalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.FlexGrid.CellStyle.HorizontalAlignment.html#C1_WPF_FlexGrid_CellStyle_HorizontalAlignment">HorizontalAlignment</a> of the cell content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_Tag" data-uid="C1.WPF.FlexGrid.CellStyle.Tag">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.Tag.html#C1_WPF_FlexGrid_CellStyle_Tag">Tag</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an arbitrary object value that can be used to store custom
information about this <a class="xref" href="C1.WPF.FlexGrid.CellStyle.html">CellStyle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_TextDecorations" data-uid="C1.WPF.FlexGrid.CellStyle.TextDecorations">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.TextDecorations.html#C1_WPF_FlexGrid_CellStyle_TextDecorations">TextDecorations</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.textdecorationcollection">TextDecorationCollection</a> to be applied to text in the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_TextTrimming" data-uid="C1.WPF.FlexGrid.CellStyle.TextTrimming">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.TextTrimming.html#C1_WPF_FlexGrid_CellStyle_TextTrimming">TextTrimming</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.FlexGrid.CellStyle.TextTrimming.html#C1_WPF_FlexGrid_CellStyle_TextTrimming">TextTrimming</a> used to render text in a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_TextWrapping" data-uid="C1.WPF.FlexGrid.CellStyle.TextWrapping">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.TextWrapping.html#C1_WPF_FlexGrid_CellStyle_TextWrapping">TextWrapping</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether text should be wrapped in the cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_VerticalAlignment" data-uid="C1.WPF.FlexGrid.CellStyle.VerticalAlignment">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.VerticalAlignment.html#C1_WPF_FlexGrid_CellStyle_VerticalAlignment">VerticalAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.WPF.FlexGrid.CellStyle.VerticalAlignment.html#C1_WPF_FlexGrid_CellStyle_VerticalAlignment">VerticalAlignment</a> of the cell content.</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_FlexGrid_CellStyle_Apply_System_Windows_Controls_Border_" data-uid="C1.WPF.FlexGrid.CellStyle.Apply(System.Windows.Controls.Border)">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.Apply.html#C1_WPF_FlexGrid_CellStyle_Apply_System_Windows_Controls_Border_">Apply(Border)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies the attributes defined by this <a class="xref" href="C1.WPF.FlexGrid.CellStyle.html">CellStyle</a> to a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_Apply_System_Windows_Controls_Border_C1_WPF_FlexGrid_SelectedState_" data-uid="C1.WPF.FlexGrid.CellStyle.Apply(System.Windows.Controls.Border,C1.WPF.FlexGrid.SelectedState)">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.Apply.html#C1_WPF_FlexGrid_CellStyle_Apply_System_Windows_Controls_Border_C1_WPF_FlexGrid_SelectedState_">Apply(Border, SelectedState)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies the attributes defined by this <a class="xref" href="C1.WPF.FlexGrid.CellStyle.html">CellStyle</a> to a cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_Clone" data-uid="C1.WPF.FlexGrid.CellStyle.Clone">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.Clone.html#C1_WPF_FlexGrid_CellStyle_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a clone of this <a class="xref" href="C1.WPF.FlexGrid.CellStyle.html">CellStyle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_GetCellChildren_System_Windows_DependencyObject_" data-uid="C1.WPF.FlexGrid.CellStyle.GetCellChildren(System.Windows.DependencyObject)">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.GetCellChildren.html#C1_WPF_FlexGrid_CellStyle_GetCellChildren_System_Windows_DependencyObject_">GetCellChildren(DependencyObject)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellStyle_OnPropertyChanged_System_ComponentModel_PropertyChangedEventArgs_" data-uid="C1.WPF.FlexGrid.CellStyle.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.OnPropertyChanged.html#C1_WPF_FlexGrid_CellStyle_OnPropertyChanged_System_ComponentModel_PropertyChangedEventArgs_">OnPropertyChanged(PropertyChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.FlexGrid.CellStyle.PropertyChanged.html">PropertyChanged</a> 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_FlexGrid_CellStyle_PropertyChanged" data-uid="C1.WPF.FlexGrid.CellStyle.PropertyChanged">
          <a class="xref" href="C1.WPF.FlexGrid.CellStyle.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>
