MonobjcMonobjc Documented Class Library
ReplaceSubviewWith Method (oldView, newView)
NamespacesMonobjc.AppKitNSViewReplaceSubviewWith(NSView, NSView)

Replaces one of the receiver’s subviews with another view.

Original signature is '- (void)replaceSubview:(NSView *)oldView with:(NSView *)newView'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void ReplaceSubviewWith(
	NSView oldView,
	NSView newView
Public Overridable Sub ReplaceSubviewWith ( _
	oldView As NSView, _
	newView As NSView _
virtual void ReplaceSubviewWith(
	NSView^ oldView, 
	NSView^ newView
oldView (NSView)
The view to be replaced by newView. May not be nil.
newView (NSView)
The view to replace oldView. May not be nil.
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)