語言

ViewStructure.NewChild(Int32) 方法

定義

在此檢視中建立一個新子 ViewStructure 節點,並將子節點 <列表放入 var>index</var>。

[Android.Runtime.Register("newChild", "(I)Landroid/view/ViewStructure;", "GetNewChild_IHandler", ApiSince=23)]
public abstract Android.Views.ViewStructure? NewChild(int index);
[<Android.Runtime.Register("newChild", "(I)Landroid/view/ViewStructure;", "GetNewChild_IHandler", ApiSince=23)>]
abstract member NewChild : int -> Android.Views.ViewStructure

參數

index
Int32

用於索引的 System.Int32 值。

傳回

還來一個 ViewStructure 新鮮的,準備填補。

屬性

備註

在此檢視中建立一個新子 ViewStructure 節點,並將子節點 <列表放入 var>index</var>。

<b>注意: </b>你必須先預先分配子節點空間,方法是呼叫 #addChildCount(int) 或 #setChildCount(int)。

Java 文件 android.view.ViewStructure.newChild(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於