Dela via


PhoneNumberFormatter.FormatStringWithLeftToRightMarkers(String) Method

Definition

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

String

Platform::String

winrt::hstring

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.

Applies to