Method GetContainer
GetContainer()
Retrieves the container associated with the current control.
public virtual AbstractControl? GetContainer()
Returns
- AbstractControl
An AbstractControl representing the parent or container of the current control, or null if no container is available.
Remarks
This method returns the parent control if it is set; otherwise, it returns the container control. The returned value may be null if neither a parent nor a container is defined.