Method IsSibling
IsSibling(AbstractControl?)
Determines whether the specified control shares the same parent as the current control.
public virtual bool IsSibling(AbstractControl? testControl)
Parameters
testControlAbstractControlThe control to compare with the current control. Can be null.
Returns
- bool
true if the specified control has the same parent as the current control and is not the same instance; otherwise, false.