UIViewController.PreferredContentSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the preferred size for the content of the container.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGSize PreferredContentSize { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("preferredContentSize", ObjCRuntime.ArgumentSemantic.Copy)] get; [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setPreferredContentSize:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.PreferredContentSize : CoreGraphics.CGSize with get, set
Property Value
Used primarily when displaying a view controller’s content.
- Attributes