Edit

Share via


UIView.ContentStretch Property

Definition

Developers should not use this deprecated property. Developers should use 'CreateResizableImage' instead.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'CreateResizableImage' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGRect ContentStretch { [Foundation.Export("contentStretch")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'CreateResizableImage' instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setContentStretch:")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'CreateResizableImage' instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.ContentStretch : CoreGraphics.CGRect with get, set

Property Value

Attributes

Remarks

This property was deprecated in iOS 6.0. Developers are advised to use UIImageView with a stretchable UIImage instead.

Applies to