MfNumberStyles

Namespace ›› System ››
Parent Previous Next

MfNumberStyles Class

(Inherits from MfEnum)

Determines the styles permitted in numeric string arguments that are passed to the Parse and TryParse methods of the integral and floating-point numeric types.
This enumeration has a MfFlagsAttribute MfAttribute that allows a bitwise combination of its member values.
MfNumberStyles is an MfEnum style class.
MfNumberStyles is a Sealed Class and cannot be inherited.

Links

Properties, Enumerations, Methods, Remarks

Constructors


Name

Description

Constructor()

Creates a new instance of MfNumberStyles class and set initial value to the value of None.

Constructor(num)

Creates a new instance of MfNumberStyles class and sets initial value to value of num.

Constructor(instanceEnum)

Creates a new instance of MfNumberStyles class an set the initial value to the value of instanceEnum.

Constructor(enumItem*)

Creates a new instance of MfNumberStyles and set its value enumItem value(s).

Enumerations


Name

Description


AllowCurrencySymbol

Indicates that the numeric string can contain a currency symbol.


AllowDecimalPoint

Indicates that the numeric string can have a decimal point.


AllowExponent

Indicates that the numeric string can be in exponential notation.


AllowHexSpecifier

Indicates that the numeric string represents a hexadecimal value. Valid hexadecimal values include the numeric digits 0-9 and the hexadecimal digits A-F and a-f.


AllowLeadingSign

Indicates that the numeric string can have a leading sign.


AllowLeadingWhite

Indicates that leading white-space characters can be present in the parsed string


AllowParentheses

Indicates that the numeric string can have one pair of parentheses enclosing the number. The parentheses indicate that the string to be parsed represents a negative number.


AllowThousands

Indicates that the numeric string can have group separators, such as symbols that separate hundreds from thousands.


AllowTrailingSign

Indicates that the numeric string can have a trailing sign.


AllowTrailingWhite

Indicates that trailing white-space characters can be present in the parsed string.


Any

Indicates that all styles except AllowHexSpecifier are used. This is a composite number style.


Currency

Indicates that all styles except AllowExponent and AllowHexSpecifier are used. This is a composite number style.


Float

Indicates that the AllowLeadingWhite , AllowTrailingWhite , AllowLeadingSign , AllowDecimalPoint and AllowExponent styles are used. This is a composite number style.


HexNumber

Indicates that the AllowLeadingWhite , AllowTrailingWhite , and AllowHexSpecifier styles are used. This is a composite number style.


Integer

Indicates that the AllowLeadingWhite , AllowTrailingWhite and AllowLeadingSign styles are used. This is a composite number style.


None

Indicates that no style elements, such as leading or trailing white space, thousands separators, or a decimal separator, can be present in the parsed string. The string to be parsed must consist of integral decimal digits only.


Number

Indicates that the AllowLeadingWhite , AllowTrailingWhite , AllowLeadingSign , AllowTrailingSign , AllowDecimalPoint , and AllowThousands styles are used. This is a composite number style.

Properties


Name

Description

Instance

Gets the Singleton instance of the class. Inherited from MfEnum.

MaxValue

Gets a var value representing the Maximum value of all the EnumItem instances in an MfEnum instance as a var containing integer. Inherited from MfEnum.

Value

Gets or sets the value associated with the derived MfEnum class. Inherited from MfEnum.

Methods


Name

Description

CompareTo(obj)

Compares the current instance with another object derived from MfEnum or MfEnum.EnumItem Instance and returns an integer that indicates whether the current instance Value precedes, follows, or occurs in the same position in the sort order as the other object. Inherited from MfEnum.

DestroyInstance()

Set current instance of MfEnum derived class to null.  Inherited from MfEnum.

Equals(objA)

Compares objA against current MfEnum instance to see if they have the same Value.  Inherited from MfEnum.

GetAttribute(index)

Gets an MfAttribute of the class. Inherited from MfObject.

GetAttributes()

Gets a MfGenericList of MfAttribute that Contains the attributes for the current class instance. Inherited from MfObject.

GetHashCode()

Gets A hash code for the current MfEnum. Overrides MfObject.GetHashCode(). Inherited from MfEnum.

GetInstance()

Gets the instance for the MfNumberStyles class.

GetIndexOfAttribute(attrib)

Gets the zero-based index value of the position of MfAttribute within the instance of the class. Inherited from MfObject.

GetNames()

Gets a of MfGenericList of MfString containing all enumeration names of derived MfEnum class. Inherited from MfEnum.

GetType()

Gets the Type for the for the Class .Inherited from MfObject.

GetTypeCode()

Get an enumeration value of MfTypeCode the represents MfEnum Type Code. Inherited from MfEnum.

GetValues()

Gets a MfGenericList of MfInteger containing values of derived MfEnum class. Inherited from MfEnum.

HasAttribute(attrib)

Gets if the current instance of class derived from MfSystemException has MfAttribute. Inherited from MfObject.

Is(type[, IncludeEnumItem])

Gets if current instance of object is of the same type. Inherited from MfEnum.

IsInstance()

Get if the current class is an instance. Inherited from MfObject.

MemberwiseClone()

Creates a shallow copy of the current MfObject instance. Inherited from MfObject.

ToString()

Gets a string representation of the object. Inherited from MfEnum.

Remarks

Sealed Class

Related

MfEnum.Parse(), MfEnum.ParseItem(), MfEnum.TryParse(), MfEnum.TryParseItem(), MfEnum.ToObject()