UIView.SizeThatFits(CGSize) UIView.SizeThatFits(CGSize) Method

Definition

Returns the SizeF that best fits this UIView.

[Foundation.Export("sizeThatFits:")]
public virtual CoreGraphics.CGSize SizeThatFits (CoreGraphics.CGSize size);
abstract member SizeThatFits : CoreGraphics.CGSize -> CoreGraphics.CGSize
override this.SizeThatFits : CoreGraphics.CGSize -> CoreGraphics.CGSize

Parameters

size
CGSize CGSize

The current SizeF of the UIView

Returns

The default value is the UIView's Bounds' System.Drawing.RectangleF.Size.

Applies to