Table of Contents

Method IsSibling

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

IsSibling(AbstractControl?)

Determines whether the specified control shares the same parent as the current control.

public virtual bool IsSibling(AbstractControl? testControl)

Parameters

testControl AbstractControl

The 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.

Remarks

A control is considered a sibling if it shares the same parent and is not the same instance as the current control. If testControl is null, this method returns false.