Element.RemoveLogicalChild(Element) 方法

定義

從邏輯子系中移除第一個出現的特定 Element 專案。

public:
 bool RemoveLogicalChild(Microsoft::Maui::Controls::Element ^ element);
public bool RemoveLogicalChild (Microsoft.Maui.Controls.Element element);
member this.RemoveLogicalChild : Microsoft.Maui.Controls.Element -> bool
Public Function RemoveLogicalChild (element As Element) As Boolean

參數

element
Element

要移除的 Element

傳回

如果已成功從邏輯子系移除專案,則為 true;否則為 false。 如果 Element 找不到 ,這個方法也會傳回 false。

適用於