Share via


VisualStateGroupList 类

定义

包含应用程序的可视状态组列表。

public class VisualStateGroupList : System.Collections.Generic.ICollection<Xamarin.Forms.VisualStateGroup>, System.Collections.Generic.IEnumerable<Xamarin.Forms.VisualStateGroup>, System.Collections.Generic.IList<Xamarin.Forms.VisualStateGroup>
type VisualStateGroupList = class
    interface IList<VisualStateGroup>
    interface ICollection<VisualStateGroup>
    interface seq<VisualStateGroup>
    interface IEnumerable
继承
System.Object
VisualStateGroupList
实现
System.Collections.Generic.ICollection<T> System.Collections.Generic.ICollection<VisualStateGroup> System.Collections.Generic.IEnumerable<T> System.Collections.Generic.IEnumerable<VisualStateGroup> System.Collections.Generic.IList<VisualStateGroup> System.Collections.IEnumerable

构造函数

VisualStateGroupList()

新建具有默认值的 VisualStateGroupList 对象。

VisualStateGroupList(Boolean)

包含应用程序的可视状态组列表。

属性

Count

获取列表中的可视状态组数。

IsReadOnly

获取一个布尔值,该值指示此列表是否为只读。

Item[Int32]

获取或设置指定 index 处的项。

方法

Add(VisualStateGroup)

将指定的可视状态组添加到列表中。

Clear()

从列表中删除所有可视状态组。

Contains(VisualStateGroup)

检查 item 是否位于可视状态组列表中。

CopyTo(VisualStateGroup[], Int32)

将列表组复制到指定的 array,从 arrayIndex 开始。

GetEnumerator()

返回用于循环访问列表中的组的枚举器。

IndexOf(VisualStateGroup)

如果找到,则返回 item 的索引。 否则返回 -1

Insert(Int32, VisualStateGroup)

在组列表中的 index 处插入 item

Remove(VisualStateGroup)

从组列表中删除组。

RemoveAt(Int32)

删除指定 index 处的项。

显式接口实现

IEnumerable.GetEnumerator()

获取循环访问列表中的组的枚举器。

扩展方法

ForEach<T>(IEnumerable<T>, Action<T>)

供 Xamarin.Forms 平台内部使用。

GroupToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

供 Xamarin.Forms 平台内部使用。

IndexOf<T>(IEnumerable<T>, T)

供 Xamarin.Forms 平台内部使用。

IndexOf<T>(IEnumerable<T>, Func<T,Boolean>)

供 Xamarin.Forms 平台内部使用。

Prepend<T>(IEnumerable<T>, T)

供 Xamarin.Forms 平台内部使用。

适用于