MonobjcMonobjc Documented Class Library
ConvertSizeFromView Method (aSize, aView)
NamespacesMonobjc.AppKitNSViewConvertSizeFromView(NSSize, NSView)

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

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSSize ConvertSizeFromView(
	NSSize aSize,
	NSView aView
Public Overridable Function ConvertSizeFromView ( _
	aSize As NSSize, _
	aView As NSView _
) As NSSize
virtual NSSize ConvertSizeFromView(
	NSSize aSize, 
	NSView^ aView
aSize (NSSize)
The size (width and height) in aView's coordinate system.
aView (NSView)
The view with aSize 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 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)