- drawAtPoint:withAttributes:
- drawInRect:withAttributes:
- drawWithRect:options:attributes:context:
- boundingRectWithSize:options:attributes:context:
- variantFittingPresentationWidth:
NSStringDrawingOptions
Availability 有効性
Technologies
iOS, iPadOS, Mac Catalyst, tvOS, watchOS
- (CGSize
)sizeWithAttributes:(NSDictionary
<NSAttributedStringKey
, id
> *)attrs;
macOS
- (NSSize
)sizeWithAttributes:(NSDictionary
<NSAttributedStringKey
, id
> *)attrs;
attrs
A dictionary of text attributes to be applied to the string. These are the same attributes that can be applied to an NSAttributed
object, but in the case of NSString
objects, the attributes apply to the entire string, rather than ranges within the string.
文字列に適用されることになるテキスト属性からなる辞書。NSAttributed
オブジェクトに適用されることができるのと同じ属性があります、しかしNSString
オブジェクトの場合には、属性は文字列全体に適用されます、文字列内の範囲ではなく。
The bounding box size the receiver occupies when drawn with the specified attributes. 指定された属性で描画される場合にレシーバが占める境界ボックスサイズ。
- drawAtPoint:withAttributes:
- drawInRect:withAttributes:
- drawWithRect:options:attributes:context:
- boundingRectWithSize:options:attributes:context:
- variantFittingPresentationWidth:
NSStringDrawingOptions