Editar

Compartilhar via


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

The current SizeF of the UIView

Returns

The default value is the UIView's Bounds' Size.

Attributes

Applies to

See also

  • <xref:MonoToch.UIKit.UIView.SizeToFit>