Foundation.NSNumberFormatter Members

The members of Foundation.NSNumberFormatter are listed below.

See Also: Inherited members from Foundation.NSFormatter

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AllowsFloatsbool. Whether floats can be used for input.
AlwaysShowsDecimalSeparatorbool. Whether the decimal separator should always be shown, even if the number is an integer.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
CurrencyCodestring. The currency code, as a string.
CurrencyDecimalSeparatorstring. The currency decimal separator.
CurrencyGroupingSeparatorstring. The currency grouping separator.
CurrencySymbolstring. The local currency symbol.
DecimalSeparatorstring. The decimal separator string.
static
DefaultFormatterBehaviorNSNumberFormatterBehavior. An NSNumberFormatterBehavior constant defining default formatting.
ExponentSymbolstring. The string used as an exponent symbol.
FormatterBehaviorNSNumberFormatterBehavior. The formatter behavior of this.
FormatWidthnuint. The format width of this.
GeneratesDecimalNumbersbool. Whether this creates decimals when converting strings to numbers.
GroupingSeparatorstring. The grouping separator.
GroupingSizenuint. The primary grouping size for this.
InternationalCurrencySymbolstring. The international currency symbol used by this.
Lenientbool.
LocaleNSLocale. The locale of this.
MaximumNSNumber. The highest number allowed as input.
MaximumFractionDigitsnint. The maximum number of places after the decimal separator.
MaximumIntegerDigitsnint. The maximum number of integer digits allowed as input or output.
MaximumSignificantDigitsnuint. The maximum number of significant digits.
MinimumNSNumber. The lowest number allowed as input.
MinimumFractionDigitsnint. The minimum number of digits after the decimal separated allowed as input or output.
MinimumIntegerDigitsnint. The minimum number of integer digits allowed as input or output.
MinimumSignificantDigitsnuint. The minimum number of significant digits.
MinusSignstring. The string used to represent the minus sign.
MultiplierNSNumber. The multiplier used by this.
NegativeFormatstring. The format used by this to display negative numbers.
NegativeInfinitySymbolstring. The string used to represent negative infinity.
NegativePrefixstring. The string used as a prefix for negative values.
NegativeSuffixstring. The string used as a suffix for negative values.
NilSymbolstring. The string used to represent a nil value.
NotANumberSymbolstring. The string used to represent NaN.
NumberStyleNSNumberFormatterStyle. Returns the number-formatter style.
PaddingCharacterstring. The string used as a padding character.
PaddingPositionNSNumberFormatterPadPosition. The padding position.
PartialStringValidationEnabledbool. Whether partial string validation is currently enabled.
PercentSymbolstring. The string used to represent the percent symbol.
PerMillSymbolstring. The string used to represent the per-thousands symbol.
PlusSignstring. The string used to represent the plus sign.
PositiveFormatstring. The format used to display positive numbers.
PositiveInfinitySymbolstring. The string used to represent positive infinity.
PositivePrefixstring. The string used as a prefix for the positive values.
PositiveSuffixstring. The string used as a suffix for positive values.
RoundingIncrementNSNumber. The rounding increment.
RoundingModeNSNumberFormatterRoundingMode. The rounding mode.
SecondaryGroupingSizenuint. The size of secondary groupings.
TextAttributesForNegativeInfinityNSDictionary. The text attributes used to display negative infinity.
TextAttributesForNegativeValuesNSDictionary. The text attributes used for negative numbers.
TextAttributesForNilNSDictionary. The text attributes used for the nil symbol.
TextAttributesForNotANumberNSDictionary. The text attributes used for the NaN symbol.
TextAttributesForPositiveInfinityNSDictionary. The text attributes used for the infinity symbol.
TextAttributesForPositiveValuesNSDictionary. The text attributes used for positive values.
TextAttributesForZeroNSDictionary. The text attributes used for the value zero.
UsesGroupingSeparatorbool. Whether the grouping separator is used.
UsesSignificantDigitsbool. Whether significant digits are used.
ZeroSymbolstring. The string used to represent the value zero.

Public Methods

static
LocalizedStringFromNumbernumberStyle(NSNumber, NSNumberFormatterStyle) : string
Creates a localized string for the specified number and NSNumberFormatterStyle.
NumberFromString(string) : NSNumber
Parses the specified text.
StringFromNumber(NSNumber) : string
Converts the specified number into a string, according to current state.

Protected Methods

override
Dispose(bool)
Releases the resources used by the NSNumberFormatter object.