UIKit.UIView.SetContentHuggingPriority Method
Sets the resistance to expansion beyond the UIKit.UIView's UIView.IntrinsicContentSize.

Syntax

[Foundation.Export("setContentHuggingPriority:forAxis:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual void SetContentHuggingPriority (float priority, UILayoutConstraintAxis axis)

See Also

UIView.SetContentCompressionResistancePriority

Parameters

priority
The new priority. Preferable if a member of UIKit.UILayoutPriority.
axis
The axis for which the resistance is being set.

Remarks

This method sets the resistance of a UIKit.UIView to expansion to a size greater than its UIView.IntrinsicContentSize. Application developers should set this property for both UILayoutConstraintAxis.Horizontal and UILayoutConstraintAxis.Vertical.

Requirements

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