语言

VisualTreeChangeEventArgs.ChildIndex 属性

定义

获取 Parent 元素的子元素的子元素中的索引,该子元素在添加或删除操作完成时所在的位置。 在删除时,此值始终为 -1。

public:
 property int ChildIndex { int get(); };
public int ChildIndex { get; }
member this.ChildIndex : int
Public ReadOnly Property ChildIndex As Integer

属性值

当添加或删除操作完成后,Parent 元素的子元素所在的子元素中的索引。

注解

此成员支持 .NET Framework 基础结构,不应直接从代码使用。

适用于