Edit

Share via


UITextField.DrawText(CGRect) Method

Definition

Will draw the text in the provided rectangle.

[Foundation.Export("drawTextInRect:")]
public virtual void DrawText (CoreGraphics.CGRect rect);
abstract member DrawText : CoreGraphics.CGRect -> unit
override this.DrawText : CoreGraphics.CGRect -> unit

Parameters

rect
CGRect

The rectangle that will hold the text.

Attributes

Remarks

Do not call this method directly. It is provided to custom the location of the text. Subclasses of UITextField that override this property should still call the base method and modify the original returned rectangle. If the subclass renders the text itself, then the base method should not be called.

Applies to