Numeric Cell
Represents a cell that displays a numeric value.
Namespace: LSOne.Controls.Cells
Assembly: LSOne.Controls.ListView
Syntax
public class NumericCell : Cell
Constructors
Name | Description |
---|---|
NumericCell() | Default constructor. Initializes a new instance of the NumericCell class |
NumericCell(string, decimal) | Initializes a new instance of the NumericCell class with the given text and decimal value |
NumericCell(string, double) | Initializes a new instance of the NumericCell class with the given text and double value |
NumericCell(string, int) | Initializes a new instance of the NumericCell class with the given text and integer value |
NumericCell(string, LSOne.Controls.Style, decimal) | Initializes a new instance of the NumericCell class with the given text, style and decimal value |
NumericCell(string, LSOne.Controls.Style, double) | Initializes a new instance of the NumericCell class with the given text, style and double value |
NumericCell(string, LSOne.Controls.Style, int) | Initializes a new instance of the NumericCell class with the given text, style and integer value |
Properties
Name | Description |
---|---|
SortRank | Gets a sort rank equal to 5 |
Value | Gets the underlying double value. |
Methods
Name | Description |
---|---|
CompareTo(object) | Compares this instance with a specified Object based on object type, SortRank and the numeric value |
Examples
See Source\SM\Plugins\Inventory\ViewPages\ItemInventoryPage.cs from DevPack for usage examples.
row.AddCell(new NumericCell(vendorForItem.DefaultPurchasePrice.FormatWithLimits(decimalLimiter), vendorForItem.DefaultPurchasePrice));