[]
        
(Showing Draft Content)

FarPoint.Win.Spread.CellType.CurrencyCellType

CurrencyCellType Class

Represents a numeric cell formatted as currency.

Inheritance
CurrencyCellType
Namespace: FarPoint.Win.Spread.CellType
Assembly: FarPoint.Win.Spread.dll
Syntax
public class CurrencyCellType : EditBaseCellType, ICellType, IEditor, ICloneable, IPropertyAllowedSupport, INotifyEditorValueChanged, IEnhancedPdfRenderer, IPdfSupport, IAllowArrowKeysMoveActiveCell, IErrorIconSupport, IEditorVerticaAlignSupport, ICellType, ICloneable<ICellType>, ISerializeSupport, IEditFormula, IRenderAlignment, IReadOnlySupport, IStaticSupport, IWordWrapSupport, IDisposable, IFormulaEditingSupport, IAutoCompleteSupport, IShrinkToFitSupport, IFormatter, IStringTrimmingSupport, ITextOrientationSupport2, ITextOrientationSupport, IEnhancedRenderer, IRenderer, IDisplayFormulaSupport, ISerializable, INumFmtSupportCellType, IReuseEditorControl2, IReuseEditorControl
Public Class CurrencyCellType
    Inherits EditBaseCellType
    Implements ICellType, IEditor, ICloneable, IPropertyAllowedSupport, INotifyEditorValueChanged, IEnhancedPdfRenderer, IPdfSupport, IAllowArrowKeysMoveActiveCell, IErrorIconSupport, IEditorVerticaAlignSupport, ICellType, ICloneable(Of ICellType), ISerializeSupport, IEditFormula, IRenderAlignment, IReadOnlySupport, IStaticSupport, IWordWrapSupport, IDisposable, IFormulaEditingSupport, IAutoCompleteSupport, IShrinkToFitSupport, IFormatter, IStringTrimmingSupport, ITextOrientationSupport2, ITextOrientationSupport, IEnhancedRenderer, IRenderer, IDisplayFormulaSupport, ISerializable, INumFmtSupportCellType, IReuseEditorControl2, IReuseEditorControl

Constructors

Name Description
CurrencyCellType()

Creates a new currency cell with default settings.

CurrencyCellType(CurrencyCellType)

Creates a new copy from the specified cell type ("Copy constructor").

CurrencyCellType(SerializationInfo, StreamingContext)

Creates a new currency cell from serialization.

Properties

Name Description
CurrencySymbol

Gets or sets the string for the currency symbol when displaying currency values.

DecimalPlaces

Gets or sets the number of decimal places.

DecimalSeparator

Gets or sets the decimal character.

FixedPoint

Gets or sets whether to display zeros as placeholders in the decimal portion of the number for a fixed-point numeric display.

LeadingZero

Gets or sets whether leading zeros are displayed.

MaximumValue

Gets or sets the maximum value allowed for user entry.

MinimumValue

Gets or sets the minimum value allowed for user entry.

NegativeFormat

Gets or sets the format for displaying a negative value.

NegativeRed

Gets or sets whether negative numeric values are displayed in red.

OverflowCharacter

Gets or sets the character for replacing the value if it does not fit the width of the display.

PositiveFormat

Gets or sets the format for displaying a positive value.

Separator

Gets or sets the string used to separate thousands in a numeric value.

ShowCurrencySymbol

Gets or sets whether to display the currency symbol.

ShowSeparator

Gets or sets whether to display the thousands separator string.

SpinButton

Gets or sets whether a spin button is displayed when editing.

SpinDecimalIncrement

Gets or sets the amount by which the value increments when using the spin buttons and the cursor is in the decimal portion.

SpinIntegerIncrement

Gets or sets the amount by which the value increments when using the spin buttons and the cursor is in the integer portion.

SpinWrap

Gets or sets whether the value wraps when the minimum or maximum is reached.

Methods

Name Description
Clone()

Creates and returns a currency cell.

Deserialize(XmlNodeReader)

Loads the object from XML.

GetEditorControl(Appearance, float)

Gets the edit control for this cell type with the specified appearance and scaling.

GetEditorControl(Control, Appearance, float)

Gets the edit control for this cell type with the specified appearance and scaling.

GetNewFormat()

Gets the format string for formatting currency values.

GetObjectData(SerializationInfo, StreamingContext)

Serializes the cell type.

GetPreferredSize(Graphics, Size, Appearance, object, float)

Gets the preferred (maximum required) size of the cell for the editor control.

GetSeparatorCharacter()

Gets the separator character for formatting currency values.

InitializeEditorControl(Control, Appearance, float)

Initializes the editor control.

IsReusable(Control)

Checks if this celltype is reusable.

IsValid(object)

Determines whether the specified value can be converted to a decimal value and is between the minimum and maximum allowed value.

PaintCell(Graphics, Rectangle, Appearance, object, bool, bool, float)

Paints the cell, when not in edit mode, to the specified graphics interface with the specified appearance settings.

Parse(string)

Parses the specified string to the data type of the cell type and returns it as an object.

Serialize(XmlTextWriter)

Saves the object to XML.

SetCalculatorText(string, string)

Sets the text for the pop-up calculator.

SetEditorValue(object)

Sets the value of the editor control.

SetNewFormat()

Sets the new format string (returned by GetNewFormat) into the internal cell formatter.