Element.OnChildRemoved 方法

定義

多載

OnChildRemoved(Element)
已淘汰.

只要需要發出 ChildRemoved 事件時即叫用。 實作這個方法可為此事件加入類別處理。

OnChildRemoved(Element, Int32)

OnChildRemoved(Element)

警告

OnChildRemoved(Element) is obsolete as of version 4.8.0. Please use OnChildRemoved(Element, int) instead.

只要需要發出 ChildRemoved 事件時即叫用。 實作這個方法可為此事件加入類別處理。

[System.Obsolete("OnChildRemoved(Element) is obsolete as of version 4.8.0. Please use OnChildRemoved(Element, int) instead.")]
protected virtual void OnChildRemoved (Xamarin.Forms.Element child);
abstract member OnChildRemoved : Xamarin.Forms.Element -> unit
override this.OnChildRemoved : Xamarin.Forms.Element -> unit

參數

child
Element

已移除的項目。

屬性
System.ObsoleteAttribute

備註

這個方法沒有預設實作。 如果中繼類別已實作此方法,您仍應該呼叫基底實作。

適用於

OnChildRemoved(Element, Int32)

protected virtual void OnChildRemoved (Xamarin.Forms.Element child, int oldLogicalIndex);
abstract member OnChildRemoved : Xamarin.Forms.Element * int -> unit
override this.OnChildRemoved : Xamarin.Forms.Element * int -> unit

參數

child
Element
oldLogicalIndex
System.Int32

適用於