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)
開發人員應該使用 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
參數
- 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)
開發人員應該使用 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
參數
- This
- NSString
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- minFontSize
- nfloat
- actualFontSize
- nfloat
- breakMode
- UILineBreakMode
- adjustment
- 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
參數
- This
- NSString
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- fontSize
- nfloat
- breakMode
- UILineBreakMode
- adjustment
- UIBaselineAdjustment
傳回
- 屬性
備註
(此節點的更多檔即將推出)
這可從背景執行緒使用。
適用於
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
參數
- This
- String
- rect
- CGRect
- font
- UIFont
- mode
- UILineBreakMode
- alignment
- UITextAlignment
傳回
- 屬性
適用於
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
參數
- This
- String
- point
- CGPoint
- width
- nfloat
- font
- UIFont
- breakMode
- UILineBreakMode
傳回
- 屬性
適用於
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
參數
- 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)
開發人員應該使用 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
參數
- This
- String
- rect
- CGRect
- font
- UIFont
- mode
- 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
參數
- This
- NSString
- rect
- CGRect
- font
- UIFont
- mode
- UILineBreakMode
傳回
- 屬性
備註
(此節點的更多檔即將推出)
這可從背景執行緒使用。
適用於
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
參數
- 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)
開發人員應該使用 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
參數
- 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
傳回
- 屬性
備註
(此節點的更多檔即將推出)
這可從背景執行緒使用。