Пример #1
0
 /// <summary>
 /// Rounds the rectangle's value to the closest less than or equal to whole numbers.
 /// </summary>
 public static RadRect Floor(RadRect rect)
 {
     return(new RadRect((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height));
 }
Пример #2
0
 internal virtual RadRect ArrangeOverride(RadRect rect)
 {
     return(rect);
 }
Пример #3
0
 /// <summary>
 /// Rounds the rectangle's values to the closed whole number.
 /// </summary>
 public static RadRect Round(RadRect rect)
 {
     return(new RadRect((int)(rect.X + .5d), (int)(rect.Y + .5d), (int)(rect.Width + .5d), (int)(rect.Height + .5d)));
 }
Пример #4
0
 public static Rect ToRect(this RadRect rect)
 {
     return(new Rect(rect.X, rect.Y, rect.Width, rect.Height));
 }