public ElementPositionInfo(ElementPosition elementPosition, Rectangle targetRectangle) : base(elementPosition.ElementRectangle, elementPosition.TargetEdge, elementPosition.AlignmentEdge) { TargetRectangle = targetRectangle; }
public static ElementPositionInfo ToElementPositionInfo(this ElementPosition elementPosition, Rectangle targetRectangle) { return(new ElementPositionInfo(elementPosition, targetRectangle)); }