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