MapControl.Region 屬性

定義

取得或設定區域 (,例如位址的州或省) 。

public:
 property Platform::String ^ Region { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Region();

void Region(winrt::hstring value);
public string Region { get; set; }
var string = mapControl.region;
mapControl.region = string;
Public Property Region As String

屬性值

String

Platform::String

winrt::hstring

例如,區域 (位址的州或省) 。

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

備註

您可以使用此屬性,根據特定區域的語言,在地圖控制項中顯示內容。 此屬性的預設值為 null。 如果您未設定此屬性,地圖控制項會根據使用者區域的語言顯示內容。 區域通常會定義在使用者電腦或裝置的系統設定中。

適用於