internal static NativeRectangle ToNative(this PageRect rectangle) { #if __ANDROID__ || WINDOWS_PHONE_APP return(new NativeRectangle(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height)); #elif __IOS__ return(NativeRectangle.Create((ushort)rectangle.X, (ushort)rectangle.Y, (ushort)rectangle.Width, (ushort)rectangle.Height)); #endif }
internal static PageRect FromNative(this NativeRectangle rectangle) { return(new PageRect((short)rectangle.X, (short)rectangle.Y, (short)rectangle.Width, (short)rectangle.Height)); }