ConceptHMI Web Help
GetAncestorByType Method
The System.Windows.DependencyObject on which to find the ancestor.
The System.Type of the ancestor to find.
Gets the ancestor of the System.Windows.DependencyObject parameter by the System.Type parameter.
Syntax
public static DependencyObject GetAncestorByType( 
   DependencyObject element,
   Type type
)

Parameters

element
The System.Windows.DependencyObject on which to find the ancestor.
type
The System.Type of the ancestor to find.

Return Value

There is three possible returns :
  1. Null, if the System.Windows.DependencyObject parameter is Null.
  2. The System.Windows.DependencyObject parameter, if it is of the same System.Type as the System.Type parameter.
  3. The first ancester of the System.Windows.DependencyObject parameter with the same System.Type as the System.Type parameter.
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

Reference

ConceptLinksDisplayer Class
ConceptLinksDisplayer Members

 

 


© 2016 Objectis

Send Feedback