Megosztás a következőn keresztül:


NumberFormat.ParseIntegerOnly Property

Definition

Returns true if this format will parse numbers as integers only. -or- Sets whether or not numbers should be parsed as integers only.

public virtual bool ParseIntegerOnly { [Android.Runtime.Register("isParseIntegerOnly", "()Z", "GetIsParseIntegerOnlyHandler")] get; [Android.Runtime.Register("setParseIntegerOnly", "(Z)V", "GetSetParseIntegerOnly_ZHandler")] set; }
[<get: Android.Runtime.Register("isParseIntegerOnly", "()Z", "GetIsParseIntegerOnlyHandler")>]
[<set: Android.Runtime.Register("setParseIntegerOnly", "(Z)V", "GetSetParseIntegerOnly_ZHandler")>]
member this.ParseIntegerOnly : bool with get, set

Property Value

true if numbers should be parsed as integers only; false otherwise

Attributes

Remarks

Property getter documentation:

Returns true if this format will parse numbers as integers only. For example in the English locale, with ParseIntegerOnly true, the string "1234." would be parsed as the integer value 1234 and parsing would stop at the "." character. Of course, the exact format accepted by the parse operation is locale dependent and determined by sub-classes of NumberFormat.

Java documentation for java.text.NumberFormat.isParseIntegerOnly().

Property setter documentation:

Sets whether or not numbers should be parsed as integers only.

Java documentation for java.text.NumberFormat.setParseIntegerOnly(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to