MonobjcMonobjc Documented Class Library
ConvertRectFromView Method (aRect, aView)
NamespacesMonobjc.AppKitNSViewConvertRectFromView(NSRect, NSView)

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

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect ConvertRectFromView(
	NSRect aRect,
	NSView aView
Public Overridable Function ConvertRectFromView ( _
	aRect As NSRect, _
	aView As NSView _
) As NSRect
virtual NSRect ConvertRectFromView(
	NSRect aRect, 
	NSView^ aView
aRect (NSRect)
The rectangle in aView's coordinate system.
aView (NSView)
The view with aRect in its coordinate system. 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)