Method CoercePosition
CoercePosition(PointD?, AbstractControl?)
Determines the effective position based on the specified position and the relative control.
public static PointD CoercePosition(PointD? position, AbstractControl? relativeTo)
Parameters
positionPointD?The position to evaluate. If null or equal to MinusOne, the current mouse position relative to
relativeTois returned.relativeToAbstractControlThe control relative to which the mouse position is calculated if
positionis null or MinusOne. Can be null.