OpenTK.Platform.iPhoneOS.iPhoneOSGameView.Size Property
The size of the current view.

Syntax

public System.Drawing.Size Size { get; set; }

Value

A System.Drawing.Size which is the size of the current view.

Exceptions

TypeReason
ObjectDisposedException The instance has had Foundation.NSObject.Dispose invoked on it.

Remarks

This differs from UIKit.UIView.Bounds in that Size's Width and Height are of type int, while Bound's Width and Height are of type float (i.e. integer vs. floating-point). OpenGL uses integral types, so Size is a simple way to get sizes in a form usable by OpenGL.

Requirements

Namespace: OpenTK.Platform.iPhoneOS
Assembly: OpenTK-1.0 (in OpenTK-1.0.dll)
Assembly Versions: 0.0.0.0