MonobjcMonobjc Documented Class Library
BoundingRectWithSizeOptions Method (__target, size, options)
NamespacesMonobjc.AppKitNSAttributedString_AppKitAdditionsBoundingRectWithSizeOptions(NSAttributedString, NSSize, NSStringDrawingOptions)

Calculates and returns bounding rectangle for the receiver drawn using the options specified, within the given rectangle in the current graphics context.

Original signature is '- (NSRect)boundingRectWithSize:(NSSize)size options:(NSStringDrawingOptions)options'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSRect BoundingRectWithSizeOptions(
	this NSAttributedString __target,
	NSSize size,
	NSStringDrawingOptions options
<ExtensionAttribute> _
Public Shared Function BoundingRectWithSizeOptions ( _
	__target As NSAttributedString, _
	size As NSSize, _
	options As NSStringDrawingOptions _
) As NSRect
static NSRect BoundingRectWithSizeOptions(
	NSAttributedString^ __target, 
	NSSize size, 
	NSStringDrawingOptions options
__target (NSAttributedString)
The target instance.
size (NSSize)
options (NSStringDrawingOptions)
Return Value

[Missing <returns> documentation for "M:Monobjc.AppKit.NSAttributedString_AppKitAdditions.BoundingRectWithSizeOptions(Monobjc.Foundation.NSAttributedString,Monobjc.Foundation.NSSize,Monobjc.AppKit.NSStringDrawingOptions)"]

Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type NSAttributedString. When you use instance method syntax to call this method, omit the first parameter.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)