다음을 통해 공유


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
특성

적용 대상