FloatEdit Class

Source: Controls/FloatEdit.cs · Assembly: Dew.Math.Controls
UpDownBaseFloatEdit

public class FloatEdit : UpDownBase

NumericUpDown control supporting complex numbers.

The control can be used as editor for real or complex numbers with the ability to specify arbitrary (real or integer, real or complex) up/down increments. The control also features an editor, which can be accessed by holding down the CTRL key and double clicking on it. The key properties which control the increment and number formating can be set with the control editor.

Properties

NameTypeDescription
CplxPositionTCplxReturns the current value displayed by the control formated as a complex number.
EditorEnabledBooleanIf true, then holding down the CTRL key and double clicking the control will display the control editor.
ImFormatStringString format for the imaginary part of complex number.
IncrementStringDefines the increment for the up/down buttons.
IntegerIncrementBooleanIf true, the increment can be only integer.
IntPositionInt32Returns the current value displayed by the component.
MaxValueStringThe maximum accepted value displayed by the edit box.
MinValueStringThe minimum accepted value displayed by the edit box.
PositionDoubleReturns the current value displayed by the component.
ReFormatStringString format for the real part of complex number.
RegistryPathStringThe address in the registry where the properties of this control are to be stored.
ScientificBooleanDisplay numbers in full scientific format.
StoreInRegistryBooleanIf true, control properties will be saved to the registry.
TextString
ValueStringStores the currently displayed value.

Methods

NameDescription
ctorFloatEdit control constructor.
DownButton
LoadFromRegistryLoad control properties from the registry.
SaveToRegistrySave control properties to the registry.
UpButton