Polyline 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表地圖控件上繪製的聚合線。
public ref class Polyline : Microsoft::Maui::Controls::Maps::MapElement, Microsoft::Maui::IElement, Microsoft::Maui::IStroke, Microsoft::Maui::Maps::IGeoPathMapElement, System::Collections::Generic::ICollection<Microsoft::Maui::Devices::Sensors::Location ^>, System::Collections::Generic::IEnumerable<Microsoft::Maui::Devices::Sensors::Location ^>, System::Collections::Generic::IList<Microsoft::Maui::Devices::Sensors::Location ^>
public class Polyline : Microsoft.Maui.Controls.Maps.MapElement, Microsoft.Maui.IElement, Microsoft.Maui.IStroke, Microsoft.Maui.Maps.IGeoPathMapElement, System.Collections.Generic.ICollection<Microsoft.Maui.Devices.Sensors.Location>, System.Collections.Generic.IEnumerable<Microsoft.Maui.Devices.Sensors.Location>, System.Collections.Generic.IList<Microsoft.Maui.Devices.Sensors.Location>
type Polyline = class
inherit MapElement
interface IGeoPathMapElement
interface IMapElement
interface IElement
interface IStroke
interface IList<Location>
interface ICollection<Location>
interface seq<Location>
interface IEnumerable
Public Class Polyline
Inherits MapElement
Implements ICollection(Of Location), IElement, IEnumerable(Of Location), IGeoPathMapElement, IList(Of Location), IStroke
- 繼承
- 實作
建構函式
Polyline() |
初始化 Polyline 類別的新執行個體。 |
屬性
AutomationId |
取得或設定值,允許自動化架構尋找此項目並與之互動。 (繼承來源 Element) |
BindingContext |
取得或設定 物件,其中包含屬於這個 BindableObject之系結屬性的目標屬性。 這是可繫結屬性。 (繼承來源 BindableObject) |
ClassId |
取得或設定值,用來識別語意類似項目的集合。 (繼承來源 Element) |
Count |
取得這個聚合線條中的位置物件計數。 |
Dispatcher |
取得建立這個可系結物件時可用的發送器,否則會嘗試尋找最接近的可用發送器(可能是視窗的/應用程式)。 (繼承來源 BindableObject) |
EffectControlProvider |
供 .NET MAUI 內部使用。 (繼承來源 Element) |
Effects |
取得或設定將在運行時間期間套用至項目的樣式和屬性。 (繼承來源 Element) |
Geopath |
取得在地圖上形成聚合線條的位置清單。 |
Handler |
取得或設定這個項目的相關處理程式。 (繼承來源 Element) |
Id |
取得值,這個值可用來在應用程式執行期間唯一識別專案。 (繼承來源 Element) |
IsReadOnly |
取得這個聚合線是否為唯讀。 |
Item[Int32] |
取得或設定位於指定索引的位置物件。 |
LogicalChildren |
已淘汰.
代表地圖控件上繪製的聚合線。 (繼承來源 Element) |
MapElementId |
取得或設定這個對應專案的平台對應專案。 (繼承來源 MapElement) |
Parent |
取得或設定這個專案的父 Element 代。 (繼承來源 Element) |
RealParent |
供 .NET MAUI 內部使用。 (繼承來源 Element) |
StrokeColor |
取得或設定筆劃色彩。 這是可繫結屬性。 (繼承來源 MapElement) |
StrokeWidth |
取得或設定筆劃寬度。 預設值是 |
StyleId |
取得或設定使用者定義值來唯一識別項目。 (繼承來源 Element) |
方法
事件
BindingContextChanged |
發生於 BindingContext 屬性的值變更時。 (繼承來源 BindableObject) |
ChildAdded |
每當子專案加入至 項目時引發。 (繼承來源 Element) |
ChildRemoved |
每當從專案中移除子項目時引發。 (繼承來源 Element) |
DescendantAdded |
每當子專案加入至專案的子樹時引發。 (繼承來源 Element) |
DescendantRemoved |
每當從專案子樹中移除子項目時引發。 (繼承來源 Element) |
HandlerChanged |
每當元素的處理程式變更時引發。 (繼承來源 Element) |
HandlerChanging |
每當元素的處理程序開始變更時引發。 (繼承來源 Element) |
ParentChanged |
每當專案的父代變更時引發。 (繼承來源 Element) |
ParentChanging |
每當元素開始變更時引發。 (繼承來源 Element) |
PropertyChanged |
當屬性值變更時發生。 (繼承來源 BindableObject) |
PropertyChanging |
屬性值正在變更時發生。 (繼承來源 BindableObject) |
明確介面實作
擴充方法
GetPropertyIfSet<T>(BindableObject, BindableProperty, T) |
代表地圖控件上繪製的聚合線。 |
SetAppTheme<T>(BindableObject, BindableProperty, T, T) |
代表地圖控件上繪製的聚合線。 |
SetAppThemeColor(BindableObject, BindableProperty, Color, Color) |
代表地圖控件上繪製的聚合線。 |
SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String) |
建立並將繫結套用至屬性。 |
FindByName<T>(Element, String) |
代表地圖控件上繪製的聚合線。 |
ToHandler(IElement, IMauiContext) |
代表地圖控件上繪製的聚合線。 |
ToPlatform(IElement, IMauiContext) |
代表地圖控件上繪製的聚合線。 |
GetVisualElementWindow(IVisualTreeElement) |
如果元素包含在其中,則取得包含可視化樹狀結構的視窗。 |
GetVisualTreeDescendants(IVisualTreeElement) |
取得子系的整個階層,做為指定可視化樹狀結構專案的子系列表。 |
GetVisualTreeElements(IVisualTreeElement, Point) |
根據指定的Point取得視覺化樹狀結構專案的子系列表。 |
GetVisualTreeElements(IVisualTreeElement, Rect) |
根據矩形取得可視化樹狀結構專案子系的清單。 |
GetVisualTreeElements(IVisualTreeElement, Double, Double) |
根據指定的 x、y 點,取得可視化樹狀結構專案子系的清單。 |
GetVisualTreeElements(IVisualTreeElement, Double, Double, Double, Double) |
根據以平台單位而非圖元指定之座標所定義的矩形,取得可視化樹狀專案子系的清單。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應