ComponentOne FinancialChart for WPF
GetParentOfType(DependencyObject,Type) Method



C1.WPF Namespace > VTreeHelper Class > GetParentOfType Method : GetParentOfType(DependencyObject,Type) Method
The visual whose parent is returned.
The System.Type of the parent element to search for.
Returns a System.Windows.DependencyObject value that represents the parent of the visual object of the specified type. Method looks up the visual tree until the desired parent element is found or parent element is null.
Syntax
'Declaration
 
Public Overloads Shared Function GetParentOfType( _
   ByVal reference As DependencyObject, _
   ByVal type As Type _
) As DependencyObject
'Usage
 
Dim reference As DependencyObject
Dim type As Type
Dim value As DependencyObject
 
value = VTreeHelper.GetParentOfType(reference, type)
public static DependencyObject GetParentOfType( 
   DependencyObject reference,
   Type type
)
public:
static DependencyObject^ GetParentOfType( 
   DependencyObject^ reference,
   Type^ type
) 

Parameters

reference
The visual whose parent is returned.
type
The System.Type of the parent element to search for.

Return Value

The parent of the visual.
See Also

Reference

VTreeHelper Class
VTreeHelper Members
Overload List