PhoneNumberFormatter.FormatStringWithLeftToRightMarkers(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the input string, formatted as a phone number, surrounded by Unicode Left to Right (LTR) markers.
public:
virtual Platform::String ^ FormatStringWithLeftToRightMarkers(Platform::String ^ number) = FormatStringWithLeftToRightMarkers;
winrt::hstring FormatStringWithLeftToRightMarkers(winrt::hstring const& number);
public string FormatStringWithLeftToRightMarkers(string number);
function formatStringWithLeftToRightMarkers(number)
Public Function FormatStringWithLeftToRightMarkers (number As String) As String
Parameters
- number
-
String
Platform::String
winrt::hstring
The input string to be formatted.
Returns
The input string, formatted as a phone number, using the region specified when this PhoneNumberFormatter was created. The string is surrounded by Unicode Left to Right (LTR) markers.
Remarks
Use this method when rendering a phone number for display and the current region settings specify a Right to Left (RTL) language. Phone numbers should still be rendered Left to Right, even when rendered in RTL languages.