Class GridCellNumericEditCellModel<T>
Implements the model part of a numeric edit cell.
Inheritance
System.Object
GridCellNumericEditCellModel<T>
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellNumericEditCellModel<T> : GridCellModel<T>, IDisposable where T : IGridCellRenderer, new()
Type Parameters
Name |
---|
T |
Constructors
GridCellNumericEditCellModel()
Declaration
public GridCellNumericEditCellModel()
Methods
ApplyFormattedText(GridStyleInfo, String, Int32)
Parses the display text and converts it into a cell value to be stored in the style object.
Declaration
public override bool ApplyFormattedText(GridStyleInfo style, string text, int textInfo)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | Style information for the cell. |
System.String | text | The input text to be parsed. |
System.Int32 | textInfo |
Returns
Type | Description |
---|---|
System.Boolean | True if value was parsed correctly and saved in style object as CellValue; False otherwise. |
Overrides
ApplyFormattedValue(GridStyleInfo, String)
Declaration
protected virtual object ApplyFormattedValue(GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | |
System.String | text |
Returns
Type |
---|
System.Object |
GetFormattedText(GridStyleInfo, Object, Int32)
Returns formatted text for the specified value.
Declaration
public override string GetFormattedText(GridStyleInfo style, object value, int textInfo)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | The GridStyleInfo object that holds cell information. |
System.Object | value | The value to format. |
System.Int32 | textInfo | TextInfo is a hint of who is calling, default is GridCellBaseTextInfo.DisplayText. |
Returns
Type | Description |
---|---|
System.String | The formatted text for the given value. |
Overrides
GetFormattedText(String, NumberFormatInfo)
Declaration
protected virtual string GetFormattedText(string text, NumberFormatInfo numberFormatInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Globalization.NumberFormatInfo | numberFormatInfo |
Returns
Type |
---|
System.String |
GetText(GridStyleInfo, Object)
This is called from GridStyleInfo.GetText (ignoring any Format settings).
Declaration
public override string GetText(GridStyleInfo style, object value)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | The GridStyleInfo object that holds cell information. |
System.Object | value | The value to convert to a string. |
Returns
Type | Description |
---|---|
System.String | The string that represents the given value. |
Overrides
Implements
System.IDisposable