Deprecated in iOS7. Use NSString.GetSizeUsingAttributes(UIStringAttributes) instead.
Calculates the System.Drawing.SizeF of the specified string if it were rendered with the specified font.
- str
- The string whose size is being calculated.
- font
- The font to be used in the size calculation.
Returns the System.Drawing.SizeF of the specified string if it were rendered with the specified font.
Application developers can use this method to calculate text metrics. It does not render or otherwise change state in the MonoTouch.UIKit.UIView.
In iOS 6 and later, this method calculates the size using the UILineBreakMode.WordWrap line-break mode. In earlier versions, this method returns the calculation without any line breaks.