Edit

Share via


UITextField.DrawPlaceholder(CGRect) Method

Definition

Will draw the placeholder text in the provided rectangle.

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

Parameters

rect
CGRect

The rectangle that will hold the placeholder text.

Attributes

Remarks

Do not call this method directly. It is provided to custom the location of the placeholder 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