EAPCtrlUtilsClosestParent Method  | 
 
            Finds the closest parent control that "is" the specified type and, if cssClass is specified,
            has the specified CssClass.
            
 
    Namespace: 
   NetQuarry
    Assembly:
   EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntaxpublic static Control ClosestParent(
	Control ctrl,
	Type parentType,
	string cssClass
)
Public Shared Function ClosestParent ( 
	ctrl As Control,
	parentType As Type,
	cssClass As String
) As Control
Parameters
- ctrl
 - Type: System.Web.UIControl
The control whose parent we're interested in. - parentType
 - Type: SystemType
The System.Type of the parent of interest or null if type does not matter. - cssClass
 - Type: SystemString
The CssClass of the parent of interest or null/empty if CssClass does not matter. 
Return Value
Type: 
ControlThe parent control, if found, else null.
See Also