Class GridCellIntegerEditCellModel
Implements the model part of an integer edit cell.
Inheritance
System.Object
GridCellIntegerEditCellModel
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellIntegerEditCellModel : GridCellNumericEditCellModel<GridCellIntegerEditCellRenderer>, IDisposable
Constructors
GridCellIntegerEditCellModel()
Declaration
public GridCellIntegerEditCellModel()
Methods
ApplyFormattedValue(GridStyleInfo, String)
Parses the display text and converts it into a cell value to be stored in the style object.
Declaration
protected override object ApplyFormattedValue(GridStyleInfo style, string text)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | Style information for the cell. |
System.String | text | The input text to be parsed. |
Returns
Type | Description |
---|---|
System.Object | True if value was parsed correctly and saved in style object as CellValue; False otherwise. |
Overrides
Syncfusion.Windows.Controls.Grid.GridCellNumericEditCellModel<Syncfusion.Windows.Controls.Grid.GridCellIntegerEditCellRenderer>.ApplyFormattedValue(Syncfusion.Windows.Controls.Grid.GridStyleInfo, System.String)
GetFormattedText(GridStyleInfo, Object, Int32)
Declaration
public override string GetFormattedText(GridStyleInfo style, object value, int textInfo)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | |
System.Object | value | |
System.Int32 | textInfo |
Returns
Type |
---|
System.String |
Overrides
Syncfusion.Windows.Controls.Grid.GridCellNumericEditCellModel<Syncfusion.Windows.Controls.Grid.GridCellIntegerEditCellRenderer>.GetFormattedText(Syncfusion.Windows.Controls.Grid.GridStyleInfo, System.Object, System.Int32)
GetFormattedText(String, NumberFormatInfo)
Return formatted text for the specified value.
Declaration
protected override string GetFormattedText(string text, NumberFormatInfo numberFormatInfo)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Globalization.NumberFormatInfo | numberFormatInfo |
Returns
Type | Description |
---|---|
System.String | The formatted text for the given value. |
Overrides
Syncfusion.Windows.Controls.Grid.GridCellNumericEditCellModel<Syncfusion.Windows.Controls.Grid.GridCellIntegerEditCellRenderer>.GetFormattedText(System.String, System.Globalization.NumberFormatInfo)
GetNumber(String, NumberFormatInfo)
Declaration
protected string GetNumber(string text, NumberFormatInfo numberFormat)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Globalization.NumberFormatInfo | numberFormat |
Returns
Type |
---|
System.String |
Implements
System.IDisposable