UIStringDrawing.DrawString 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DrawString(NSString, CGPoint, UIFont)
开发人员不应使用此已弃用的方法。 开发人员应改用“NSString.DrawString (CGPoint, UIStringAttributes) ”。
[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
参数
- This
- NSString
- point
- CGPoint
- font
- UIFont
返回
- 属性
注解
(此节点的更多文档即将)
这可以从后台线程使用。
适用于
DrawString(String, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment)
[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
参数
- This
- String
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- minFontSize
- nfloat
- actualFontSize
- nfloat
- breakMode
- UILineBreakMode
- adjustment
- UIBaselineAdjustment
返回
- 属性
适用于
DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, nfloat, UILineBreakMode, UIBaselineAdjustment)
[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
参数
- This
- NSString
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- minFontSize
- nfloat
- actualFontSize
- nfloat
- breakMode
- UILineBreakMode
- adjustment
- UIBaselineAdjustment
返回
- 属性
注解
(此节点的更多文档即将)
这可以从后台线程使用。
适用于
DrawString(NSString, CGPoint, nfloat, UIFont, nfloat, UILineBreakMode, UIBaselineAdjustment)
[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
参数
- This
- NSString
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- fontSize
- nfloat
- breakMode
- UILineBreakMode
- adjustment
- UIBaselineAdjustment
返回
- 属性
注解
(此节点的更多文档即将)
这可以从后台线程使用。
适用于
DrawString(String, CGRect, UIFont, UILineBreakMode, UITextAlignment)
[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
参数
- This
- String
- rect
- CGRect
- font
- UIFont
- mode
- UILineBreakMode
- alignment
- UITextAlignment
返回
- 属性
适用于
DrawString(String, CGPoint, nfloat, UIFont, UILineBreakMode)
[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
参数
- This
- String
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- breakMode
- UILineBreakMode
返回
- 属性
适用于
DrawString(NSString, CGRect, UIFont, UILineBreakMode, UITextAlignment)
[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
参数
- This
- NSString
- rect
- CGRect
- font
- UIFont
- mode
- UILineBreakMode
- alignment
- UITextAlignment
返回
- 属性
注解
(此节点的更多文档即将)
这可以从后台线程使用。
适用于
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
参数
- This
- String
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- fontSize
- nfloat
- breakMode
- UILineBreakMode
- adjustment
- UIBaselineAdjustment
返回
- 属性
适用于
DrawString(String, CGRect, UIFont, UILineBreakMode)
[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
参数
- This
- String
- rect
- CGRect
- font
- UIFont
- mode
- UILineBreakMode
返回
- 属性
适用于
DrawString(NSString, CGRect, UIFont, UILineBreakMode)
[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
参数
- This
- NSString
- rect
- CGRect
- font
- UIFont
- mode
- UILineBreakMode
返回
- 属性
注解
(此节点的更多文档即将)
这可以从后台线程使用。
适用于
DrawString(String, CGRect, UIFont)
[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
参数
- This
- String
- rect
- CGRect
- font
- UIFont
返回
- 属性
适用于
DrawString(String, CGPoint, UIFont)
开发人员应使用 DrawString(NSString, CGPoint, UIStringAttributes) 而不是这种已弃用的方法。
[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
参数
- This
- String
- point
- CGPoint
- font
- UIFont
返回
- 属性
适用于
DrawString(NSString, CGRect, UIFont)
[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
参数
- This
- NSString
- rect
- CGRect
- font
- UIFont
返回
- 属性
注解
(此节点的更多文档即将)
这可以从后台线程使用。
适用于
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
参数
- This
- NSString
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- breakMode
- UILineBreakMode
返回
- 属性
注解
(此节点的更多文档即将)
这可以从后台线程使用。