Skip to main content

Remove Method

Removes the first occurrence of a specific object from the ICollection(T).

Definition​

Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public bool Remove(
IStyle item
)

Parameters​

  IStyle
The object to remove from the ICollection(T).

Return Value​

Boolean
true if item was successfully removed from the ICollection(T); otherwise, false. This method also returns false if item is not found in the original ICollection(T).

Implements​

ICollection(T).Remove(T)

Exceptions​

NotSupportedExceptionThe ICollection(T) is read-only.

See Also​

Reference​

Styles Class
Avalonia.Styling Namespace