# GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter" class="text-break">NumberFormatConverter Class
</h1>
  <div class="markdown level0 summary"><p>Represents a converter that converts a decimal value to a string based on the pattern.</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">NumberFormatConverter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.ivalueconverter">IValueConverter</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Localizability(LocalizationCategory.NeverLocalize)]
public class NumberFormatConverter : IValueConverter, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Localizability(LocalizationCategory.NeverLocalize)&gt;
Public Class NumberFormatConverter
    Implements IValueConverter, INotifyPropertyChanged</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.html">NumberFormatConverter</a> is used to convert a given text to another string in a binding process based on specified format. If the text is valid to the GrapeCity.Windows.InputMan.NumberFormatConverter.Digit
property, it returns a translated string back; otherwise, it returns error string.</p>
</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter__ctor">NumberFormatConverter()</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new instance of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.html">NumberFormatConverter</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_Digit" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.Digit">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.Digit.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_Digit">Digit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format for <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.html">NumberFormatConverter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_ErrorString" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.ErrorString">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.ErrorString.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_ErrorString">ErrorString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string to return when converted object is not suited to format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_NegativePrefix" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.NegativePrefix">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.NegativePrefix.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_NegativePrefix">NegativePrefix</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the negative prefix for <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.html">NumberFormatConverter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_NegativeSuffix" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.NegativeSuffix">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.NegativeSuffix.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_NegativeSuffix">NegativeSuffix</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the negative suffix for GrapeCity.Windows.InputMan.NumberFormatConverter.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_NullString" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.NullString">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.NullString.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_NullString">NullString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string to return when converted object is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">String.Empty</a> or <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_PositivePrefix" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.PositivePrefix">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.PositivePrefix.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_PositivePrefix">PositivePrefix</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the positive prefix for <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.html">NumberFormatConverter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_PositiveSuffix" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.PositiveSuffix">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.PositiveSuffix.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_PositiveSuffix">PositiveSuffix</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the positive suffix for <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.html">NumberFormatConverter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_ZeroString" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.ZeroString">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.ZeroString.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_ZeroString">ZeroString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string to return when converted object is zero.</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.Convert.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">Convert(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a value to a special string based on digit.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.ConvertBack(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.NumberFormatConverter.ConvertBack.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_NumberFormatConverter_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">ConvertBack(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Modifies the target data before passing it to the source object.  This method is called only in <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.bindingmode#system-windows-data-bindingmode-twoway">TwoWay</a> bindings.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
