ListItem.SiblingListItems 属性

定义

获取一ListItemCollectionListItem包含当前ListItem元素同级元素的元素。

public:
 property System::Windows::Documents::ListItemCollection ^ SiblingListItems { System::Windows::Documents::ListItemCollection ^ get(); };
public System.Windows.Documents.ListItemCollection SiblingListItems { get; }
member this.SiblingListItems : System.Windows.Documents.ListItemCollection
Public ReadOnly Property SiblingListItems As ListItemCollection

属性值

一个ListItemCollection包含由当前ListItem元素的父元素直接承载的子ListItem元素,或者null当前ListItem元素没有父元素。

注解

ListItemCollection此属性返回的元素包括ListItem在其中访问集合的元素;也就是说,拥有此属性的元素被视为其自己的同级,以便生成同级集合。

适用于

另请参阅