Converts the rectangle from the receiver’s coordinate system to the specified layer’s coordinate system.
Original signature is '- (CGRect)convertRect:(CGRect)aRect toLayer:(CALayer *)layer'
Available in Mac OS X v10.5 and later.

Declaration Syntax
Public Overridable Function ConvertRectToLayer ( _
aRect As CGRect, _
layer As CALayer _
) As CGRect

Parameters
- aRect (CGRect)
- A point specifying a location in the coordinate system of layer.
- layer (CALayer)
- The layer into whose coordinate system aRect is to be converted. The receiver and layer and must share a common parent layer.

Return Value
The rectangle converted to the coordinate system of layer.

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)