UIStringDrawing.DrawString UIStringDrawing.DrawString Method

Definition

Overloads

DrawString(NSString, CGPoint, UIFont) DrawString(NSString, CGPoint, UIFont)

Developers should not use this deprecated method. Developers should use 'NSString.DrawString (CGPoint, UIStringAttributes)' instead.

DrawString(String, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment) DrawString(String, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment) DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment) DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(String, CGRect, UIFont, UILineBreakMode, UITextAlignment) DrawString(String, CGRect, UIFont, UILineBreakMode, UITextAlignment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(String, CGPoint, nfloat, UIFont, UILineBreakMode) DrawString(String, CGPoint, nfloat, UIFont, UILineBreakMode)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(NSString, CGRect, UIFont, UILineBreakMode, UITextAlignment) DrawString(NSString, CGRect, UIFont, UILineBreakMode, UITextAlignment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(String, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment) DrawString(String, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(String, CGRect, UIFont, UILineBreakMode) DrawString(String, CGRect, UIFont, UILineBreakMode)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(NSString, CGRect, UIFont, UILineBreakMode) DrawString(NSString, CGRect, UIFont, UILineBreakMode)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(String, CGRect, UIFont) DrawString(String, CGRect, UIFont)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(String, CGPoint, UIFont) DrawString(String, CGPoint, UIFont)

Developers should use DrawString(NSString, CGPoint, UIStringAttributes) rather than this deprecated method.

DrawString(NSString, CGRect, UIFont) DrawString(NSString, CGRect, UIFont)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(NSString, CGPoint, nfloat, UIFont, UILineBreakMode) DrawString(NSString, CGPoint, nfloat, UIFont, UILineBreakMode)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

DrawString(NSString, CGPoint, UIFont) DrawString(NSString, CGPoint, UIFont)

Developers should not use this deprecated method. Developers should use 'NSString.DrawString (CGPoint, UIStringAttributes)' instead.

[Foundation.Export("drawAtPoint:withFont:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'NSString.DrawString (CGPoint, UIStringAttributes)' instead.")]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString (this Foundation.NSString This, CoreGraphics.CGPoint point, UIKit.UIFont font);
static member DrawString : Foundation.NSString * CoreGraphics.CGPoint * UIKit.UIFont -> CoreGraphics.CGSize

Parameters

font
UIFont UIFont

Returns

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

DrawString(String, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment) DrawString(String, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use NSString.DrawString(CGRect, UIStringAttributes) instead.")]
public static CoreGraphics.CGSize DrawString (this string This, CoreGraphics.CGPoint point, nfloat width, UIKit.UIFont font, nfloat minFontSize, ref nfloat actualFontSize, UIKit.UILineBreakMode breakMode, UIKit.UIBaselineAdjustment adjustment);
static member DrawString : string * CoreGraphics.CGPoint * nfloat * UIKit.UIFont * nfloat *  * UIKit.UILineBreakMode * UIKit.UIBaselineAdjustment -> CoreGraphics.CGSize

Parameters

This
String String
width
nfloat nfloat
font
UIFont UIFont
minFontSize
nfloat nfloat
actualFontSize
nfloat nfloat

Returns

DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment) DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[Foundation.Export("drawAtPoint:forWidth:withFont:minFontSize:actualFontSize:lineBreakMode:baselineAdjustment:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'NSString.DrawString (CGRect, UIStringAttributes)' instead.")]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString (this Foundation.NSString This, CoreGraphics.CGPoint point, nfloat width, UIKit.UIFont font, nfloat minFontSize, ref nfloat actualFontSize, UIKit.UILineBreakMode breakMode, UIKit.UIBaselineAdjustment adjustment);
static member DrawString : Foundation.NSString * CoreGraphics.CGPoint * nfloat * UIKit.UIFont * nfloat *  * UIKit.UILineBreakMode * UIKit.UIBaselineAdjustment -> CoreGraphics.CGSize

Parameters

width
nfloat nfloat
font
UIFont UIFont
minFontSize
nfloat nfloat
actualFontSize
nfloat nfloat

Returns

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment) DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[Foundation.Export("drawAtPoint:forWidth:withFont:fontSize:lineBreakMode:baselineAdjustment:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'NSString.DrawString (CGRect, UIStringAttributes)' instead.")]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString (this Foundation.NSString This, CoreGraphics.CGPoint point, nfloat width, UIKit.UIFont font, nfloat fontSize, UIKit.UILineBreakMode breakMode, UIKit.UIBaselineAdjustment adjustment);
static member DrawString : Foundation.NSString * CoreGraphics.CGPoint * nfloat * UIKit.UIFont * nfloat * UIKit.UILineBreakMode * UIKit.UIBaselineAdjustment -> CoreGraphics.CGSize

Parameters

width
nfloat nfloat
font
UIFont UIFont
fontSize
nfloat nfloat

Returns

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

DrawString(String, CGRect, UIFont, UILineBreakMode, UITextAlignment) DrawString(String, CGRect, UIFont, UILineBreakMode, UITextAlignment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use NSString.DrawString(CGRect, UIStringAttributes) instead.")]
public static CoreGraphics.CGSize DrawString (this string This, CoreGraphics.CGRect rect, UIKit.UIFont font, UIKit.UILineBreakMode mode, UIKit.UITextAlignment alignment);
static member DrawString : string * CoreGraphics.CGRect * UIKit.UIFont * UIKit.UILineBreakMode * UIKit.UITextAlignment -> CoreGraphics.CGSize

Parameters

This
String String
rect
CGRect CGRect
font
UIFont UIFont

Returns

DrawString(String, CGPoint, nfloat, UIFont, UILineBreakMode) DrawString(String, CGPoint, nfloat, UIFont, UILineBreakMode)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use NSString.DrawString(CGRect, UIStringAttributes) instead.")]
public static CoreGraphics.CGSize DrawString (this string This, CoreGraphics.CGPoint point, nfloat width, UIKit.UIFont font, UIKit.UILineBreakMode breakMode);
static member DrawString : string * CoreGraphics.CGPoint * nfloat * UIKit.UIFont * UIKit.UILineBreakMode -> CoreGraphics.CGSize

Parameters

This
String String
width
nfloat nfloat
font
UIFont UIFont

Returns

DrawString(NSString, CGRect, UIFont, UILineBreakMode, UITextAlignment) DrawString(NSString, CGRect, UIFont, UILineBreakMode, UITextAlignment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[Foundation.Export("drawInRect:withFont:lineBreakMode:alignment:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'NSString.DrawString (CGRect, UIStringAttributes)' instead.")]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString (this Foundation.NSString This, CoreGraphics.CGRect rect, UIKit.UIFont font, UIKit.UILineBreakMode mode, UIKit.UITextAlignment alignment);
static member DrawString : Foundation.NSString * CoreGraphics.CGRect * UIKit.UIFont * UIKit.UILineBreakMode * UIKit.UITextAlignment -> CoreGraphics.CGSize

Parameters

rect
CGRect CGRect
font
UIFont UIFont

Returns

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

DrawString(String, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment) DrawString(String, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use NSString.DrawString(CGRect, UIStringAttributes) instead.")]
public static CoreGraphics.CGSize DrawString (this string This, CoreGraphics.CGPoint point, nfloat width, UIKit.UIFont font, nfloat fontSize, UIKit.UILineBreakMode breakMode, UIKit.UIBaselineAdjustment adjustment);
static member DrawString : string * CoreGraphics.CGPoint * nfloat * UIKit.UIFont * nfloat * UIKit.UILineBreakMode * UIKit.UIBaselineAdjustment -> CoreGraphics.CGSize

Parameters

This
String String
width
nfloat nfloat
font
UIFont UIFont
fontSize
nfloat nfloat

Returns

DrawString(String, CGRect, UIFont, UILineBreakMode) DrawString(String, CGRect, UIFont, UILineBreakMode)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use NSString.DrawString(CGRect, UIStringAttributes) instead.")]
public static CoreGraphics.CGSize DrawString (this string This, CoreGraphics.CGRect rect, UIKit.UIFont font, UIKit.UILineBreakMode mode);
static member DrawString : string * CoreGraphics.CGRect * UIKit.UIFont * UIKit.UILineBreakMode -> CoreGraphics.CGSize

Parameters

This
String String
rect
CGRect CGRect
font
UIFont UIFont

Returns

DrawString(NSString, CGRect, UIFont, UILineBreakMode) DrawString(NSString, CGRect, UIFont, UILineBreakMode)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[Foundation.Export("drawInRect:withFont:lineBreakMode:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'NSString.DrawString (CGRect, UIStringAttributes)' instead.")]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString (this Foundation.NSString This, CoreGraphics.CGRect rect, UIKit.UIFont font, UIKit.UILineBreakMode mode);
static member DrawString : Foundation.NSString * CoreGraphics.CGRect * UIKit.UIFont * UIKit.UILineBreakMode -> CoreGraphics.CGSize

Parameters

rect
CGRect CGRect
font
UIFont UIFont

Returns

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

DrawString(String, CGRect, UIFont) DrawString(String, CGRect, UIFont)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use NSString.DrawString(CGRect, UIStringAttributes) instead.")]
public static CoreGraphics.CGSize DrawString (this string This, CoreGraphics.CGRect rect, UIKit.UIFont font);
static member DrawString : string * CoreGraphics.CGRect * UIKit.UIFont -> CoreGraphics.CGSize

Parameters

This
String String
rect
CGRect CGRect
font
UIFont UIFont

Returns

DrawString(String, CGPoint, UIFont) DrawString(String, CGPoint, UIFont)

Developers should use DrawString(NSString, CGPoint, UIStringAttributes) rather than this deprecated method.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use NSString.DrawString(CGPoint, UIStringAttributes) instead.")]
public static CoreGraphics.CGSize DrawString (this string This, CoreGraphics.CGPoint point, UIKit.UIFont font);
static member DrawString : string * CoreGraphics.CGPoint * UIKit.UIFont -> CoreGraphics.CGSize

Parameters

This
String String
font
UIFont UIFont

Returns

DrawString(NSString, CGRect, UIFont) DrawString(NSString, CGRect, UIFont)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[Foundation.Export("drawInRect:withFont:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'NSString.DrawString (CGRect, UIStringAttributes)' instead.")]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString (this Foundation.NSString This, CoreGraphics.CGRect rect, UIKit.UIFont font);
static member DrawString : Foundation.NSString * CoreGraphics.CGRect * UIKit.UIFont -> CoreGraphics.CGSize

Parameters

rect
CGRect CGRect
font
UIFont UIFont

Returns

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

DrawString(NSString, CGPoint, nfloat, UIFont, UILineBreakMode) DrawString(NSString, CGPoint, nfloat, UIFont, UILineBreakMode)

M:Foundation.NSString.DrawString(CoreGraphics.CGRect, UIKit.UIStringAttributes)

[Foundation.Export("drawAtPoint:forWidth:withFont:lineBreakMode:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'NSString.DrawString (CGRect, UIStringAttributes)' instead.")]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString (this Foundation.NSString This, CoreGraphics.CGPoint point, nfloat width, UIKit.UIFont font, UIKit.UILineBreakMode breakMode);
static member DrawString : Foundation.NSString * CoreGraphics.CGPoint * nfloat * UIKit.UIFont * UIKit.UILineBreakMode -> CoreGraphics.CGSize

Parameters

width
nfloat nfloat
font
UIFont UIFont

Returns

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to