Return the parent HtmlContainerControl of the desired type that this HtmlControl is contained inside of.
If a parent HtmlControl of the desired type is not found, will return null.
Namespace: ArtOfTest.WebAii.Controls.HtmlControls
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
public virtual TContainerControl Parent<TContainerControl>() where TContainerControl : new(), HtmlContainerControl
Type Parameters
- TContainerControl
- The desired parent container HtmlControl type to find and return.
Return Value
Type: TContainerControlThe parent container HtmlControl or null if desired type is not found.
See Also