Class GridCellDoubleEditCellModel
Implements the model part of a double edit cell.
Inheritance
System.Object
GridCellDoubleEditCellModel
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellDoubleEditCellModel : GridCellNumericEditCellModel<GridCellDoubleEditCellRenderer>, IDisposable
Constructors
GridCellDoubleEditCellModel()
Declaration
public GridCellDoubleEditCellModel()
Methods
ApplyFormattedValue(GridStyleInfo, String)
Parses the display text and converts it into a cell value to be stored in the style object. GridStyleInfo.NumberFormat is used for parsing the string.
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.GridCellDoubleEditCellRenderer>.ApplyFormattedValue(Syncfusion.Windows.Controls.Grid.GridStyleInfo, System.String)
GetFormattedText(String, NumberFormatInfo)
Returns formatted text for the double edit cell.
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.GridCellDoubleEditCellRenderer>.GetFormattedText(System.String, System.Globalization.NumberFormatInfo)
GetText(GridStyleInfo, Object)
This is called from GridStyleInfo.GetText (ignoring any Format settings). GridStyleInfo.NumberFormat is used for parsing the string.
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
Syncfusion.Windows.Controls.Grid.GridCellNumericEditCellModel<Syncfusion.Windows.Controls.Grid.GridCellDoubleEditCellRenderer>.GetText(Syncfusion.Windows.Controls.Grid.GridStyleInfo, System.Object)
Implements
System.IDisposable