AVEVA OMI Software Developer Kit



Type of object
dependency object
child object name
FindChildOfType<T>(DependencyObject,String) Method
Find dependency object based on child name
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function FindChildOfType(Of T As DependencyObject)( _
   ByVal depObj As DependencyObject, _
   ByVal childName As String _
) As T
'Usage
 
Dim depObj As DependencyObject
Dim childName As String
Dim value As T
 
value = DependencyObjectExtensions.FindChildOfType(Of T)(depObj, childName)
[Extension()]
public static T FindChildOfType<T>( 
   DependencyObject depObj,
   string childName
)
where T: DependencyObject
[Extension()]
public:
static T^ FindChildOfTypegeneric<typename T>
( 
   DependencyObject^ depObj,
   String^ childName
) 
where T: DependencyObject

Parameters

depObj
dependency object
childName
child object name

Type Parameters

T
Type of object

Return Value

returns child
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also