コード例 #1
0
 /// <summary>
 /// Positions a sprite relatively to the center-right of its parent.
 /// Values are pixels to move away from the parent.
 /// </summary>
 /// <param name="sprite"></param>
 /// <param name="pixelsFromTop">Pixels from top - positive values places the sprite closer to the bottom</param>
 /// <param name="pixelsFromRight">Pixels from right - positive values places the sprite closer to the left</param>
 public static void pixelsFromRight(this IPositionable sprite, int pixelsFromTop, int pixelsFromRight)
 {
     sprite.pixelsFromRight(pixelsFromTop, pixelsFromRight, UIyAnchor.Center, UIxAnchor.Right);
 }