Einhugur macOS Bridge plugin. |

# NSView.AddSubview Method

Inserts a view among the view’s subviews so it’s displayed immediately above or below another view.

AddSubview(
view as EinhugurMacOSBridge.NSView,
positioned as EinhugurMacOSBridge.NSWindowOrderingMode,
relativeTo as EinhugurMacOSBridge.NSView)

#### Parameters

view
  The view to add to the view as a subview.
positioned
  An enum constant specifying the position of the aView relative to otherView. Valid values are NSWindowOrderingMode.Above or NSWindowOrderingMode.Above .Below.
relativeTo
  The other view aView is to be positioned relative to. If otherView is nil (or isn’t a subview of the view), RelativeTo view is added above or below all of its new siblings.

#### Remarks

#### See Also

NSView Class