Skip to content

Commit

Permalink
Merge pull request #8459 from pr8x/pseudoclasses-has
Browse files Browse the repository at this point in the history
Add `Has()` method to `IPseudoClasses`
  • Loading branch information
maxkatz6 authored Jul 12, 2022
2 parents c7f4038 + 69e6428 commit e9aa43e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Avalonia.Base/Controls/IPseudoClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,12 @@ public interface IPseudoClasses
/// </summary>
/// <param name="name">The pseudoclass name.</param>
bool Remove(string name);

/// <summary>
/// Returns whether a pseudoclass is present in the collection.
/// </summary>
/// <param name="name">The pseudoclass name.</param>
/// <returns>Whether the pseudoclass is present.</returns>
bool Contains(string name);
}
}

0 comments on commit e9aa43e

Please sign in to comment.