MonobjcMonobjc Documented Class Library
ConvertRectFromLayer Method (aRect, layer)
NamespacesMonobjc.QuartzCoreCALayerConvertRectFromLayer(CGRect, CALayer)

Converts the rectangle from the specified layer’s coordinate system to the receiver’s coordinate system.

Original signature is '- (CGRect)convertRect:(CGRect)aRect fromLayer:(CALayer *)layer'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual CGRect ConvertRectFromLayer(
	CGRect aRect,
	CALayer layer
)
Public Overridable Function ConvertRectFromLayer ( _
	aRect As CGRect, _
	layer As CALayer _
) As CGRect
public:
virtual CGRect ConvertRectFromLayer(
	CGRect aRect, 
	CALayer^ layer
)
Parameters
aRect (CGRect)
A point specifying a location in the coordinate system of layer.
layer (CALayer)
The layer with aRect in its coordinate system. The receiver and layer and must share a common parent layer.
Return Value
The rectangle converted to the receiver’s coordinate system.
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)