MonobjcMonobjc Documented Class Library
ReplaceSublayerWith Method (oldLayer, newLayer)
NamespacesMonobjc.QuartzCoreCALayerReplaceSublayerWith(CALayer, CALayer)

Replaces the layer in the receiver’s sublayers array with the specified new layer.

Original signature is '- (void)replaceSublayer:(CALayer *)oldLayer with:(CALayer *)newLayer'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void ReplaceSublayerWith(
	CALayer oldLayer,
	CALayer newLayer
)
Public Overridable Sub ReplaceSublayerWith ( _
	oldLayer As CALayer, _
	newLayer As CALayer _
)
public:
virtual void ReplaceSublayerWith(
	CALayer^ oldLayer, 
	CALayer^ newLayer
)
Parameters
oldLayer (CALayer)
The layer to be replaced to the receiver’s sublayer array.
newLayer (CALayer)
The layer with which to replace oldLayer in the receiver’s sublayer array.
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)