# C1.WinUI.Grid.GridTextCellView

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WinUI_Grid_GridTextCellView" data-uid="C1.WinUI.Grid.GridTextCellView" class="text-break">GridTextCellView Class
</h1>
  <div class="markdown level0 summary"><p>Grid cell dedicated to render text.</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="../C1.WinUI.Core/C1.WinUI.Core.C1View.html">C1View</a></div>
    <div class="level2"><a class="xref" href="../C1.WinUI.Core/C1.WinUI.Core.C1Border.html">C1Border</a></div>
    <div class="level3"><a class="xref" href="../C1.WinUI.GridControl/C1.WinUI.Grid.GridControlCellView.html">GridControlCellView</a></div>
    <div class="level4"><a class="xref" href="C1.WinUI.Grid.GridCellView.html">GridCellView</a></div>
    <div class="level5"><span class="xref">GridTextCellView</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.WinUI.Grid.html">C1.WinUI.Grid</a></h6>
  <h6><strong>Assembly</strong>: C1.WinUI.Grid.dll</h6>
  <h5 id="C1_WinUI_Grid_GridTextCellView_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GridTextCellView : GridCellView, IDisposable, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GridTextCellView
    Inherits GridCellView
    Implements 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_WinUI_Grid_GridTextCellView__ctor" data-uid="C1.WinUI.Grid.GridTextCellView.#ctor">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.-ctor.html#C1_WinUI_Grid_GridTextCellView__ctor">GridTextCellView()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WinUI.Grid.GridTextCellView.html">GridTextCellView</a> class.</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_WinUI_Grid_GridTextCellView_HorizontalTextAlignmentProperty" data-uid="C1.WinUI.Grid.GridTextCellView.HorizontalTextAlignmentProperty">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.HorizontalTextAlignmentProperty.html">HorizontalTextAlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WinUI.Grid.GridTextCellView.HorizontalTextAlignment.html#C1_WinUI_Grid_GridTextCellView_HorizontalTextAlignment">HorizontalTextAlignment</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_TextMarginProperty" data-uid="C1.WinUI.Grid.GridTextCellView.TextMarginProperty">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.TextMarginProperty.html">TextMarginProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WinUI.Grid.GridTextCellView.TextMargin.html#C1_WinUI_Grid_GridTextCellView_TextMargin">TextMargin</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_TextProperty" data-uid="C1.WinUI.Grid.GridTextCellView.TextProperty">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.TextProperty.html">TextProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WinUI.Grid.GridTextCellView.Text.html#C1_WinUI_Grid_GridTextCellView_Text">Text</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_VerticalTextAlignmentProperty" data-uid="C1.WinUI.Grid.GridTextCellView.VerticalTextAlignmentProperty">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.VerticalTextAlignmentProperty.html">VerticalTextAlignmentProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WinUI.Grid.GridTextCellView.VerticalTextAlignment.html#C1_WinUI_Grid_GridTextCellView_VerticalTextAlignment">VerticalTextAlignment</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_WinUI_Grid_GridTextCellView_HorizontalTextAlignment" data-uid="C1.WinUI.Grid.GridTextCellView.HorizontalTextAlignment">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.HorizontalTextAlignment.html#C1_WinUI_Grid_GridTextCellView_HorizontalTextAlignment">HorizontalTextAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text horizontal alignment.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_NeedsRenderContent" data-uid="C1.WinUI.Grid.GridTextCellView.NeedsRenderContent">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.NeedsRenderContent.html#C1_WinUI_Grid_GridTextCellView_NeedsRenderContent">NeedsRenderContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the <a class="xref" href="../C1.WinUI.Core/C1.WinUI.Core.C1Border.OnRenderContent.html#C1_WinUI_Core_C1Border_OnRenderContent_Microsoft_Graphics_Canvas_CanvasDrawingSession_Windows_Foundation_Rect_">OnRenderContent(CanvasDrawingSession, Rect)</a> method needs to be executed and the clipping of the content.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_Text" data-uid="C1.WinUI.Grid.GridTextCellView.Text">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.Text.html#C1_WinUI_Grid_GridTextCellView_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_TextMargin" data-uid="C1.WinUI.Grid.GridTextCellView.TextMargin">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.TextMargin.html#C1_WinUI_Grid_GridTextCellView_TextMargin">TextMargin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text margin.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_VerticalTextAlignment" data-uid="C1.WinUI.Grid.GridTextCellView.VerticalTextAlignment">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.VerticalTextAlignment.html#C1_WinUI_Grid_GridTextCellView_VerticalTextAlignment">VerticalTextAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text vertical alignment.</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_WinUI_Grid_GridTextCellView_Dispose_System_Boolean_" data-uid="C1.WinUI.Grid.GridTextCellView.Dispose(System.Boolean)">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.Dispose.html#C1_WinUI_Grid_GridTextCellView_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_OnApplyTemplate" data-uid="C1.WinUI.Grid.GridTextCellView.OnApplyTemplate">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.OnApplyTemplate.html#C1_WinUI_Grid_GridTextCellView_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_OnFlowDirectionChanged" data-uid="C1.WinUI.Grid.GridTextCellView.OnFlowDirectionChanged">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.OnFlowDirectionChanged.html#C1_WinUI_Grid_GridTextCellView_OnFlowDirectionChanged">OnFlowDirectionChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the flow direction changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_OnFontChanged" data-uid="C1.WinUI.Grid.GridTextCellView.OnFontChanged">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.OnFontChanged.html#C1_WinUI_Grid_GridTextCellView_OnFontChanged">OnFontChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when any of the font properties changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_OnForegroundChanged" data-uid="C1.WinUI.Grid.GridTextCellView.OnForegroundChanged">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.OnForegroundChanged.html#C1_WinUI_Grid_GridTextCellView_OnForegroundChanged">OnForegroundChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the foreground changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_OnPropertyChanged_System_String_" data-uid="C1.WinUI.Grid.GridTextCellView.OnPropertyChanged(System.String)">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.OnPropertyChanged.html#C1_WinUI_Grid_GridTextCellView_OnPropertyChanged_System_String_">OnPropertyChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when a property changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WinUI_Grid_GridTextCellView_OnRenderContent_Microsoft_Graphics_Canvas_CanvasDrawingSession_Windows_Foundation_Rect_" data-uid="C1.WinUI.Grid.GridTextCellView.OnRenderContent(Microsoft.Graphics.Canvas.CanvasDrawingSession,Windows.Foundation.Rect)">
          <a class="xref" href="C1.WinUI.Grid.GridTextCellView.OnRenderContent.html#C1_WinUI_Grid_GridTextCellView_OnRenderContent_Microsoft_Graphics_Canvas_CanvasDrawingSession_Windows_Foundation_Rect_">OnRenderContent(CanvasDrawingSession, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Draw the content of the control in the specified <code class="paramref">drawingContext</code>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
