FrameworkContentElement.FindName Method (String)

 

Finds an element that has the provided identifier name.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

member FindName : 
        name:string -> Object

Parameters

name
Type: System.String

Name of the element to search for.

Return Value

Type: System.Object

The requested element. May be null if no matching element was found.

If this element has child elements, these child elements are all searched recursively for the requested named element.

The following example sets a property on an element found by name within a referenced FlowDocument on a page.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: