Editar

Compartilhar via


UITextField.ClearButtonRect(CGRect) Method

Definition

Returns a rectangle for drawing the 'clear' button.

[Foundation.Export("clearButtonRectForBounds:")]
public virtual CoreGraphics.CGRect ClearButtonRect (CoreGraphics.CGRect forBounds);
abstract member ClearButtonRect : CoreGraphics.CGRect -> CoreGraphics.CGRect
override this.ClearButtonRect : CoreGraphics.CGRect -> CoreGraphics.CGRect

Parameters

forBounds
CGRect

The bounding rectangle.

Returns

Attributes

Remarks

Do not call this method directly. This method is provided to allow the 'clear' button to be placed in a different location. Subclasses of UITextField that override this property should still call the base method and modify the original returned rectangle.

Applies to