MonobjcMonobjc Documented Class Library
ConvertSizeToView Method (aSize, aView)
NamespacesMonobjc.AppKitNSViewConvertSizeToView(NSSize, NSView)

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

Original signature is '- (NSSize)convertSize:(NSSize)aSize toView:(NSView *)aView'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSSize ConvertSizeToView(
	NSSize aSize,
	NSView aView
)
Public Overridable Function ConvertSizeToView ( _
	aSize As NSSize, _
	aView As NSView _
) As NSSize
public:
virtual NSSize ConvertSizeToView(
	NSSize aSize, 
	NSView^ aView
)
Parameters
aSize (NSSize)
The size (width and height) 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 size, as an NSSize structure.
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)