UIKit.UIView.Add Method
This is an alias for UIView.AddSubview, but uses the Add pattern as it allows C# 3.0 constructs to add subviews after creating the object.

Syntax

public void Add (UIView view)

Parameters

view
The subview to add.

Remarks

This method is equivalent to UIView.AddSubview and is present to enable C# 3.0 to add subviews at creation time.

C# Example

              var myView = new MyView (new RectangleF (0, 0, 320, 320)){
                new ImageGallery (region [0]),
                new ImageGallery (region [1]),
                new UILabel (new RectangleF (10, 10, 200, 200)){
                  Text = "Images from our Trip"
                }
              };
            

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0