MonoTouch.UIKit.UIView.DrawString Method

Deprecated in iOS7. Use NSString.DrawString(RectangleF, UIStringAttributes) instead.

Draws the string in the specified rectangle with the specified font.

Syntax

[MonoTouch.ObjCRuntime.ThreadSafe]
public System.Drawing.SizeF DrawString (string str, System.Drawing.PointF point, float width, UIFont font, UILineBreakMode breakMode)

Parameters

str
String to draw.
point
The position where the string should be drawn.
width
The maximum width to use when drawing.
font
Font to use to draw the string.
breakMode
The linebreak mode to use to draw the string.

Returns

The actual size used by the rendering.

Remarks

This can be used from a background thread.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0