VisualCollection.Contains(Visual) VisualCollection.Contains(Visual) VisualCollection.Contains(Visual) Method

Definition

Returns a Boolean value that indicates whether the specified Visual is contained in the collection.

public:
 bool Contains(System::Windows::Media::Visual ^ visual);
public bool Contains (System.Windows.Media.Visual visual);
member this.Contains : System.Windows.Media.Visual -> bool

Parameters

visual
Visual Visual Visual

The Visual to search for in the collection.

Returns

true if visual is contained in the collection; otherwise, false.

Remarks

The worst-case runtime scenario of this function is O(n), where n is the number of items in the VisualCollection.

Applies to