UIElementCollection::Contains Method (UIElement^)
.NET Framework (current version)
Determines whether a specified element is in the UIElementCollection.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- element
-
Type:
System.Windows::UIElement^
The element to find.
Return Value
Type: System::Booleantrue if the specified UIElement is found in the collection; otherwise, false.
The following example uses the Contains method to determine if a specific UIElement exists within a UIElementCollection.
.NET Framework
Available since 3.0
Available since 3.0
Show: