WebMarco.Frontend.PlatformImplemented.iOS.Rectangle.GetRectangleF C# (CSharp) Method

GetRectangleF() public static method

public static GetRectangleF ( BaseRectangle rectangle ) : System.Drawing.RectangleF
rectangle WebMarco.Frontend.Common.BaseRectangle
return System.Drawing.RectangleF
        public static System.Drawing.RectangleF GetRectangleF(BaseRectangle rectangle) {
            return new System.Drawing.RectangleF(
                (float)(rectangle.TopLeft.X),
                (float)(rectangle.TopLeft.Y),
                (float)(rectangle.Width),
                (float)(rectangle.Height));
        }

Usage Example

Exemplo n.º 1
0
 public System.Drawing.RectangleF ToRectangleF()
 {
     return(Rectangle.GetRectangleF((BaseRectangle)this));
 }