MonobjcMonobjc Documented Class Library
ConvertRectToView Method (aRect, aView)
NamespacesMonobjc.AppKitNSViewConvertRectToView(NSRect, NSView)

Converts a rectangle from the receiver’s coordinate system to that of another view.

Original signature is '- (NSRect)convertRect:(NSRect)aRect toView:(NSView *)aView'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect ConvertRectToView(
	NSRect aRect,
	NSView aView
)
Public Overridable Function ConvertRectToView ( _
	aRect As NSRect, _
	aView As NSView _
) As NSRect
public:
virtual NSRect ConvertRectToView(
	NSRect aRect, 
	NSView^ aView
)
Parameters
aRect (NSRect)
A rectangle in the receiver's coordinate system.
aView (NSView)
The view that is the target of the conversion operation. If aView is nil, this method instead converts from window base coordinates. Otherwise, both aView and the receiver must belong to the same NSWindow object.
Return Value
The converted rectangle.
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)