VisualStateGroupList Class

Definition

Contains a list of visual state groups for an application.

C#
public class VisualStateGroupList : System.Collections.Generic.ICollection<Microsoft.Maui.Controls.VisualStateGroup>, System.Collections.Generic.IEnumerable<Microsoft.Maui.Controls.VisualStateGroup>, System.Collections.Generic.IList<Microsoft.Maui.Controls.VisualStateGroup>
Inheritance
VisualStateGroupList
Implements

Constructors

Properties

Count

Gets the number of visual state groups in the list.

IsReadOnly

Gets a Boolean value that tells whether this list is read-only.

Item[Int32]

Methods

Add(VisualStateGroup)

Adds the specified visual state group to the list.

Clear()

Removes all visual state groups from the list.

Contains(VisualStateGroup)

Checks whether item is in the list of visual state groups.

CopyTo(VisualStateGroup[], Int32)

Copies the list group to the specified array, starting at arrayIndex.

Equals(Object)
GetEnumerator()

Returns an enumerator for iterating over the groups in the list.

GetHashCode()
IndexOf(VisualStateGroup)

Returns the index of item if found. Otherwise, returns -1.

Insert(Int32, VisualStateGroup)

Inserts item at index in the list of groups.

Remove(VisualStateGroup)

Removes the group from the list of groups.

RemoveAt(Int32)

Removes the item at the specified index.

Explicit Interface Implementations

Applies to

Product Versions
.NET MAUI 8, 9