public static void SetLastLineFillingPercent(this UITextView This, int lastLineFillingPercent) { lastLineFillingPercent = Math.Min(100, lastLineFillingPercent); This.SetAssociatedObject(LastLineFillingPercentKey, new NSNumber(lastLineFillingPercent)); }
public static void SetNumLines(this UITextView This, int numLines) { numLines = Math.Max(0, numLines); This.SetAssociatedObject(LastLineFillingPercentKey, new NSNumber(numLines)); }