次の方法で共有


NSAttributedString.DrawString メソッド

定義

オーバーロード

DrawString(CGRect, NSStringDrawingOptions)
DrawString(CGRect, NSStringDrawingOptions, NSStringDrawingContext)
DrawString(CGPoint)

指定したポイントに文字列を描画します。

DrawString(CGRect)

DrawString(CGRect, NSStringDrawingOptions)

[Foundation.Export("drawWithRect:options:")]
public virtual void DrawString (CoreGraphics.CGRect rect, Foundation.NSStringDrawingOptions options);
abstract member DrawString : CoreGraphics.CGRect * Foundation.NSStringDrawingOptions -> unit
override this.DrawString : CoreGraphics.CGRect * Foundation.NSStringDrawingOptions -> unit

パラメーター

rect
CGRect
属性

適用対象

DrawString(CGRect, NSStringDrawingOptions, NSStringDrawingContext)

[Foundation.Export("drawWithRect:options:context:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DrawString (CoreGraphics.CGRect rect, Foundation.NSStringDrawingOptions options, Foundation.NSStringDrawingContext context);
abstract member DrawString : CoreGraphics.CGRect * Foundation.NSStringDrawingOptions * Foundation.NSStringDrawingContext -> unit
override this.DrawString : CoreGraphics.CGRect * Foundation.NSStringDrawingOptions * Foundation.NSStringDrawingContext -> unit

パラメーター

rect
CGRect
context
NSStringDrawingContext

追加する。

このパラメーターは、null に設定できます。

属性

適用対象

DrawString(CGPoint)

指定したポイントに文字列を描画します。

[Foundation.Export("drawAtPoint:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DrawString (CoreGraphics.CGPoint point);
[Foundation.Export("drawAtPoint:")]
public virtual void DrawString (CoreGraphics.CGPoint point);
abstract member DrawString : CoreGraphics.CGPoint -> unit
override this.DrawString : CoreGraphics.CGPoint -> unit

パラメーター

point
CGPoint
属性

適用対象

DrawString(CGRect)

[Foundation.Export("drawInRect:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DrawString (CoreGraphics.CGRect rect);
[Foundation.Export("drawInRect:")]
public virtual void DrawString (CoreGraphics.CGRect rect);
abstract member DrawString : CoreGraphics.CGRect -> unit
override this.DrawString : CoreGraphics.CGRect -> unit

パラメーター

rect
CGRect
属性

適用対象