UIKit.UITextField: Property Members

The properties of UIKit.UITextField are listed below. For a list of all members, see the UITextField Members list.

See Also: Inherited members from UIKit.UIControl

Public Properties

AdjustsFontSizeToFitWidthbool. A stem.Boolean that controls if the font should be scaled down to ensure the text fits in the control.
AllowsEditingTextAttributesbool. Whether text entered or pasted can change the attributes of the content.
[read-only]
static
AppearanceUITextField.UITextFieldAppearance. Strongly-typed property that returns the UIAppearance class for this class.
AttributedPlaceholderFoundation.NSAttributedString. Sets the contents of the placeholder as an attributed string.
AttributedTextFoundation.NSAttributedString. Sets the contents of the text field using an attributed string.
AutocapitalizationTypeUITextAutocapitalizationType. This property controls how words should be capitalized by the system during user input.
AutocorrectionTypeUITextAutocorrectionType. This property controls how auto-correction should be applied by the system during user input.
BackgroundUIImage. This property contains the image that will be displayed in the background of the control when it is enabled.
[read-only]
BeginningOfDocumentUITextPosition. Specifies the text position that is the start of the document. Read-only.
BorderStyleUITextBorderStyle. The border style.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
ClearButtonModeUITextFieldViewMode. This property controls when the 'clear' button appears in the text field.
ClearsOnBeginEditingbool. This property indicates if the control will delete any existing text before editing.
ClearsOnInsertionbool. Whether a paste operation should replace existing content.
[read-only]
static
CurrentInputModeDidChangeNotificationFoundation.NSString. Notification constant for CurrentInputModeDidChange
DelegateIUITextFieldDelegate. An instance of the UIKit.UITextFieldDelegate model class which acts as the class delegate.
DisabledBackgroundUIImage. The image to display in the background when the control is disabled.
EnablesReturnKeyAutomaticallybool. A value that control if the return key is automatically enabled.
[read-only]
EndOfDocumentUITextPosition. The text position for the end of the document.
FontUIFont. The font to use for displaying the text.
[read-only]
HasTextbool. A value representing if there is text in the view.
InputAccessoryViewUIView. A custom view to display when this control becomes the first responder.
InputDelegateIUITextInputDelegate. The input delegate object for this UIKit.UITextField.
InputViewUIView. A custom view to be used when the control becomes the first responder.
[read-only]
IsEditingbool. A value that indicates if the user is editing the text in the view. Read-only.
KeyboardAppearanceUIKeyboardAppearance. The style of the keyboard that is used with the view.
KeyboardTypeUIKeyboardType. The type of keyboard to use with the view.
LeftViewUIView. An overlay that is displayed on the left side of the view.
LeftViewModeUITextFieldViewMode. A property that determines when the UITextField.LeftView will be displayed.
[read-only]
MarkedTextRangeUITextRange. The range of marked text in the document. Read-only.
MarkedTextStyleFoundation.NSDictionary. A Foundation.NSDictionary of attributes describing style of the UITextField.MarkedTextRange.
MinimumFontSizenfloat. This property represents the smallest font size that may be used for the text.
Placeholderstring. This property represents the text to be displayed when there is no text in the view.
ReturnKeyTypeUIReturnKeyType. The property is used to get or set the UIKit.UIReturnKeyType of the "return" key. The "return" key will display different text depending on this property.
RightViewUIView. This property holds a overlay that will be displayed on the right side of the text field.
RightViewModeUITextFieldViewMode. This property controls when the UITextField.RightView will appear.
SecureTextEntrybool. This property controls if the text being displayed should be hidden.
SelectedTextRangeUITextRange. This property returns the range of text that is selected.
ShouldBeginEditingUITextFieldCondition. Delegate invoked by the object to get a value.
ShouldChangeCharactersUITextFieldChange. Delegate invoked by the object to get a value.
ShouldClearUITextFieldCondition. Delegate invoked by the object to get a value.
ShouldEndEditingUITextFieldCondition. Delegate invoked by the object to get a value.
ShouldReturnUITextFieldCondition. Delegate invoked by the object to get a value.
SpellCheckingTypeUITextSpellCheckingType. This property controls if spell checking will be enabled or disabled during input.
Textstring. The text to display.
TextAlignmentUITextAlignment. How the UITextField.Text should be aligned.
[read-only]
static
TextBackgroundColorKeyFoundation.NSString. The property holds the key that should be used to retrieve the background color of text from a Foundation.NSDictionary.
TextColorUIColor. The color of the UITextField.Text.
[read-only]
static
TextColorKeyFoundation.NSString. The property holds the key that should be used to retrieve the value of the text color from a Foundation.NSDictionary.
[read-only]
static
TextDidBeginEditingNotificationFoundation.NSString. Notification constant for TextDidBeginEditing
[read-only]
static
TextDidEndEditingNotificationFoundation.NSString. Notification constant for TextDidEndEditing
[read-only]
static
TextFieldTextDidChangeNotificationFoundation.NSString. Notification constant for TextFieldTextDidChange
[read-only]
static
TextFontKeyFoundation.NSString. The property holds the key that should be used to retrieve the value of the font for the text from a Foundation.NSDictionary.
[read-only]
TextInputViewUIView. This the view that provides the coordinate system. Read-only.
[read-only]
TokenizerIUITextInputTokenizer. This property provides information on the tokenizer that would be used to break up the text into units such as characters, words, lines, and paragraphs.
TypingAttributesFoundation.NSDictionary. The attribute keys to apply to newly typed text.
WeakDefaultTextAttributesFoundation.NSDictionary. A reference to the text attributes that does not prevent garbage collection.
WeakDelegateFoundation.NSObject. An object that can respond to the delegate protocol for this type
WeakInputDelegateFoundation.NSObject. An object that can respond to the delegate protocol for inserted text.
[read-only]
WeakTokenizerFoundation.NSObject. This property provides information on the tokenizer that would be used to break up the text into units such as characters, words, lines, and paragraphs.