Android.Telephony.PhoneNumberUtils.FormatNumber Method
Formats a phone number in-place.

Syntax

[Android.Runtime.Register("formatNumber", "(Landroid/text/Editable;I)V", "")]
[System.Obsolete("deprecated")]
public static void FormatNumber (Android.Text.IEditable text, [Android.Runtime.GeneratedEnum] PhoneNumberFormat defaultFormattingType)

Parameters

text
The number to be formatted, will be modified with the formatting
defaultFormattingType
The default formatting rules to apply if the number does not begin with +[country_code]

Remarks

Formats a phone number in-place. Currently PhoneNumberUtils.FORMAT_JAPAN and PhoneNumberUtils.FORMAT_NANP is supported as a second argument.

[Android Documentation]

Requirements

Namespace: Android.Telephony
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1