共用方式為


VisualElement.OnChildRemoved(Element, Int32) 方法

定義

從這個專案移除子物件時叫用。

protected:
 override void OnChildRemoved(Microsoft::Maui::Controls::Element ^ child, int oldLogicalIndex);
protected override void OnChildRemoved (Microsoft.Maui.Controls.Element child, int oldLogicalIndex);
override this.OnChildRemoved : Microsoft.Maui.Controls.Element * int -> unit
Protected Overrides Sub OnChildRemoved (child As Element, oldLogicalIndex As Integer)

參數

child
Element

從這個專案移除的子專案。

oldLogicalIndex
Int32

先前在此元素內具有的邏輯索引 child

適用於