Share via


UIStringDrawing.DrawString Method

Definition

Overloads

Name Description
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)

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

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

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

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

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

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

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

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

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

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

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

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

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

DrawString(String, CGRect, UIFont, UILineBreakMode)

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

DrawString(NSString, CGRect, UIFont, UILineBreakMode)

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

DrawString(String, CGRect, UIFont)

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

DrawString(String, CGPoint, UIFont)

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

DrawString(NSString, CGRect, UIFont)

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

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

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

DrawString(NSString, CGPoint, UIFont)

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

[Foundation.Export("drawAtPoint:withFont:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString(this Foundation.NSString This, CoreGraphics.CGPoint point, UIKit.UIFont font);
[<Foundation.Export("drawAtPoint:withFont:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member DrawString : Foundation.NSString * CoreGraphics.CGPoint * UIKit.UIFont -> CoreGraphics.CGSize

Parameters

This
NSString

The instance on which this method operates.

point
CGPoint
font
UIFont

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to

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

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

public static CoreGraphics.CGSize DrawString(this string This, CoreGraphics.CGPoint point, System.Runtime.InteropServices.NFloat width, UIKit.UIFont font, System.Runtime.InteropServices.NFloat minFontSize, ref System.Runtime.InteropServices.NFloat actualFontSize, UIKit.UILineBreakMode breakMode, UIKit.UIBaselineAdjustment adjustment);
static member DrawString : string * CoreGraphics.CGPoint * System.Runtime.InteropServices.NFloat * UIKit.UIFont * System.Runtime.InteropServices.NFloat * NFloat * UIKit.UILineBreakMode * UIKit.UIBaselineAdjustment -> CoreGraphics.CGSize

Parameters

This
String
point
CGPoint
width
NFloat
font
UIFont
minFontSize
NFloat
actualFontSize
NFloat
breakMode
UILineBreakMode

Returns

Applies to

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

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

[Foundation.Export("drawAtPoint:forWidth:withFont:minFontSize:actualFontSize:lineBreakMode:baselineAdjustment:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString(this Foundation.NSString This, CoreGraphics.CGPoint point, System.Runtime.InteropServices.NFloat width, UIKit.UIFont font, System.Runtime.InteropServices.NFloat minFontSize, ref System.Runtime.InteropServices.NFloat actualFontSize, UIKit.UILineBreakMode breakMode, UIKit.UIBaselineAdjustment adjustment);
[<Foundation.Export("drawAtPoint:forWidth:withFont:minFontSize:actualFontSize:lineBreakMode:baselineAdjustment:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member DrawString : Foundation.NSString * CoreGraphics.CGPoint * System.Runtime.InteropServices.NFloat * UIKit.UIFont * System.Runtime.InteropServices.NFloat * NFloat * UIKit.UILineBreakMode * UIKit.UIBaselineAdjustment -> CoreGraphics.CGSize

Parameters

This
NSString

The instance on which this method operates.

point
CGPoint
width
NFloat
font
UIFont
minFontSize
NFloat
actualFontSize
NFloat
breakMode
UILineBreakMode

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to

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

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

[Foundation.Export("drawAtPoint:forWidth:withFont:fontSize:lineBreakMode:baselineAdjustment:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString(this Foundation.NSString This, CoreGraphics.CGPoint point, System.Runtime.InteropServices.NFloat width, UIKit.UIFont font, System.Runtime.InteropServices.NFloat fontSize, UIKit.UILineBreakMode breakMode, UIKit.UIBaselineAdjustment adjustment);
[<Foundation.Export("drawAtPoint:forWidth:withFont:fontSize:lineBreakMode:baselineAdjustment:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member DrawString : Foundation.NSString * CoreGraphics.CGPoint * System.Runtime.InteropServices.NFloat * UIKit.UIFont * System.Runtime.InteropServices.NFloat * UIKit.UILineBreakMode * UIKit.UIBaselineAdjustment -> CoreGraphics.CGSize

Parameters

This
NSString

The instance on which this method operates.

point
CGPoint
width
NFloat
font
UIFont
fontSize
NFloat
breakMode
UILineBreakMode

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to

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

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

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
rect
CGRect
font
UIFont
alignment
UITextAlignment

Returns

Applies to

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

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

public static CoreGraphics.CGSize DrawString(this string This, CoreGraphics.CGPoint point, System.Runtime.InteropServices.NFloat width, UIKit.UIFont font, UIKit.UILineBreakMode breakMode);
static member DrawString : string * CoreGraphics.CGPoint * System.Runtime.InteropServices.NFloat * UIKit.UIFont * UIKit.UILineBreakMode -> CoreGraphics.CGSize

Parameters

This
String
point
CGPoint
width
NFloat
font
UIFont
breakMode
UILineBreakMode

Returns

Applies to

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

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

[Foundation.Export("drawInRect:withFont:lineBreakMode:alignment:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString(this Foundation.NSString This, CoreGraphics.CGRect rect, UIKit.UIFont font, UIKit.UILineBreakMode mode, UIKit.UITextAlignment alignment);
[<Foundation.Export("drawInRect:withFont:lineBreakMode:alignment:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member DrawString : Foundation.NSString * CoreGraphics.CGRect * UIKit.UIFont * UIKit.UILineBreakMode * UIKit.UITextAlignment -> CoreGraphics.CGSize

Parameters

This
NSString

The instance on which this method operates.

rect
CGRect
font
UIFont
alignment
UITextAlignment

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to

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

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

public static CoreGraphics.CGSize DrawString(this string This, CoreGraphics.CGPoint point, System.Runtime.InteropServices.NFloat width, UIKit.UIFont font, System.Runtime.InteropServices.NFloat fontSize, UIKit.UILineBreakMode breakMode, UIKit.UIBaselineAdjustment adjustment);
static member DrawString : string * CoreGraphics.CGPoint * System.Runtime.InteropServices.NFloat * UIKit.UIFont * System.Runtime.InteropServices.NFloat * UIKit.UILineBreakMode * UIKit.UIBaselineAdjustment -> CoreGraphics.CGSize

Parameters

This
String
point
CGPoint
width
NFloat
font
UIFont
fontSize
NFloat
breakMode
UILineBreakMode

Returns

Applies to

DrawString(String, CGRect, UIFont, UILineBreakMode)

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

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
rect
CGRect
font
UIFont

Returns

Applies to

DrawString(NSString, CGRect, UIFont, UILineBreakMode)

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

[Foundation.Export("drawInRect:withFont:lineBreakMode:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString(this Foundation.NSString This, CoreGraphics.CGRect rect, UIKit.UIFont font, UIKit.UILineBreakMode mode);
[<Foundation.Export("drawInRect:withFont:lineBreakMode:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member DrawString : Foundation.NSString * CoreGraphics.CGRect * UIKit.UIFont * UIKit.UILineBreakMode -> CoreGraphics.CGSize

Parameters

This
NSString

The instance on which this method operates.

rect
CGRect
font
UIFont

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to

DrawString(String, CGRect, UIFont)

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

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
rect
CGRect
font
UIFont

Returns

Applies to

DrawString(String, CGPoint, UIFont)

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

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
point
CGPoint
font
UIFont

Returns

Applies to

DrawString(NSString, CGRect, UIFont)

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

[Foundation.Export("drawInRect:withFont:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString(this Foundation.NSString This, CoreGraphics.CGRect rect, UIKit.UIFont font);
[<Foundation.Export("drawInRect:withFont:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member DrawString : Foundation.NSString * CoreGraphics.CGRect * UIKit.UIFont -> CoreGraphics.CGSize

Parameters

This
NSString

The instance on which this method operates.

rect
CGRect
font
UIFont

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to

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

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

[Foundation.Export("drawAtPoint:forWidth:withFont:lineBreakMode:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static CoreGraphics.CGSize DrawString(this Foundation.NSString This, CoreGraphics.CGPoint point, System.Runtime.InteropServices.NFloat width, UIKit.UIFont font, UIKit.UILineBreakMode breakMode);
[<Foundation.Export("drawAtPoint:forWidth:withFont:lineBreakMode:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member DrawString : Foundation.NSString * CoreGraphics.CGPoint * System.Runtime.InteropServices.NFloat * UIKit.UIFont * UIKit.UILineBreakMode -> CoreGraphics.CGSize

Parameters

This
NSString

The instance on which this method operates.

point
CGPoint
width
NFloat
font
UIFont
breakMode
UILineBreakMode

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to