UtilFormsCenterToControl Method

Centers the bounds of a source Control to a target Control.

Definition

Namespace: DevCase.Core.Application.Forms
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Point CenterToControl(
	Control source,
	Control target
)

Parameters

source  Control
The source Control.
target  Control
The target Control.

Return Value

Point
The new coordinates of the Control of the source parameter.

See Also