UIKit.UIView.IntrinsicContentSize Property
The size of the intrinsic content of the UIKit.UIView.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
[get: Foundation.Export("intrinsicContentSize")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual CoreGraphics.CGSize IntrinsicContentSize { get; }

See Also

UIView.InvalidateIntrinsicContentSize
UIView.SetContentCompressionResistancePriority

Value

The default value is {UIView.NoIntrinsicMetric, UIView.NoIntrinsicMetric}.

Remarks

Some views, such as UIKit.UILabels, have a natural intrinsic size that is not related to the actual UIView.Frame that contains the entirety of the UIKit.UIView. This property allows the UIKit.UIView to tell the Auto Layout system what System.Drawing.SizeF it would prefer to be.

If a UIKit.UIView has no intrinsic size, it should return the default {UIView.NoIntrinsicMetric,UIView.NoIntrinsicMetric} value.

Requirements

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