floorf(CGRectGetMinX(visibleBounds) / CGRectGetWidth(visibleBounds));
What is the version of monotouch methods CGrectGetWidthand CGrectGetMinX?
CGrectGetWidth
Xamarin.iOS has introduced a unified API that now also contains CGRectfriends within the namespace CoreGraphics.
CGRect
CoreGraphics
CGRectmapped to System.Drawing.RectangleF( See type mapping )
System.Drawing.RectangleF
So, if you have your own System.Drawing.RectangleF
The code will look like
RectangleF visibleBounds = new RectangleF(0, 0, 10, 10); // Or your own instance of visibleBounds float minx = visibleBounds.GetMinX(); float w = visibleBounds.Width;
Hope that helps
Alex