public void SetHeightConstraints(NSArray heightConstraints) { if (this._heightConstraints != heightConstraints) { if (this._heightConstraints != null) { this.RemoveConstraints (this._heightConstraints); } this._heightConstraints.SafeRelease (); this._heightConstraints = heightConstraints.SafeRetain<NSArray> (); if (this._heightConstraints != null) { this.AddConstraints (this._heightConstraints); } else { this.NeedsUpdateConstraints = true; } } }
public void SetOwnSizeConstraints(NSArray newConstraints) { if (this.sizeConstraints != newConstraints) { if (this.sizeConstraints != null) { this.RemoveConstraints (this.sizeConstraints); } this.sizeConstraints.SafeRelease (); this.sizeConstraints = newConstraints.SafeRetain<NSArray> (); if (this.sizeConstraints != null) { this.AddConstraints (this.sizeConstraints); } } }