Xamarin.ios CgRectGetWidth单触
什么是monotouch版本的方法Xamarin.ios CgRectGetWidth单触,xamarin.ios,cgrect,Xamarin.ios,Cgrect,什么是monotouch版本的方法CGrectGetWidth和CGrectGetMinX?更新Xamarin.iOS统一API Xamarin.iOS引入了现在包含CGRect和CoreGraphics名称空间中的好友的 CGRect映射到System.Drawing.RectangleF() 因此,如果您有自己的System.Drawing.RectangleF 代码看起来像 floorf(CGRectGetMinX(visibleBounds) / CGRectGetWidth(visi
CGrectGetWidth
和CGrectGetMinX?更新Xamarin.iOS统一API
Xamarin.iOS引入了现在包含CGRect
和CoreGraphics
名称空间中的好友的
CGRect
映射到System.Drawing.RectangleF
()
因此,如果您有自己的System.Drawing.RectangleF
代码看起来像
floorf(CGRectGetMinX(visibleBounds) / CGRectGetWidth(visibleBounds));
希望有帮助
亚历克斯
RectangleF visibleBounds = new RectangleF(0, 0, 10, 10); // Or your own instance of visibleBounds
float minx = visibleBounds.GetMinX();
float w = visibleBounds.Width;