UITextField Clase
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
[Foundation.Register("UITextField", true)]
public class UITextField : UIKit.UIControl, IDisposable, UIKit.IUIContentSizeCategoryAdjusting, UIKit.IUILetterformAwareAdjusting, UIKit.IUITextDraggable, UIKit.IUITextDroppable
[Foundation.Register("UITextField", true)]
public class UITextField : UIKit.UIControl, IDisposable, UIKit.IUIContentSizeCategoryAdjusting, UIKit.IUILetterformAwareAdjusting, UIKit.IUITextInput
[<Foundation.Register("UITextField", true)>]
type UITextField = class
inherit UIControl
interface IUITextInputTraits
interface INativeObject
interface IDisposable
interface IUIContentSizeCategoryAdjusting
interface IUIKeyInput
interface IUILetterformAwareAdjusting
interface IUIPasteConfigurationSupporting
interface IUITextDraggable
interface IUITextInput
interface IUITextDroppable
interface IUITextPasteConfigurationSupporting
[<Foundation.Register("UITextField", true)>]
type UITextField = class
inherit UIControl
interface IUITextInputTraits
interface INativeObject
interface IDisposable
interface IUIContentSizeCategoryAdjusting
interface IUIKeyInput
interface IUILetterformAwareAdjusting
interface IUITextInput
- Herencia
- Derivado
- Atributos
- Implementaciones
Constructores
| Nombre | Description |
|---|---|
| UITextField() |
Crea un nuevo UITextField con valores predeterminados. |
| UITextField(CGRect) | |
| UITextField(NativeHandle) |
Constructor usado al crear representaciones administradas de objetos no administrados. Llamado por el tiempo de ejecución. |
| UITextField(NSCoder) |
Constructor que inicializa el objeto a partir de los datos almacenados en el objeto unarchiver. |
| UITextField(NSObjectFlag) |
Constructor para llamar a en clases derivadas para omitir la inicialización y simplemente asignar el objeto. |
Propiedades
| Nombre | Description |
|---|---|
| AccessibilityActivationPoint | (Heredado de UIView) |
| AccessibilityAssistiveTechnologyFocusedIdentifiers | (Heredado de UIResponder) |
| AccessibilityAttributedHint | (Heredado de UIView) |
| AccessibilityAttributedLabel | (Heredado de UIView) |
| AccessibilityAttributedUserInputLabels | (Heredado de UIView) |
| AccessibilityAttributedValue | (Heredado de UIView) |
| AccessibilityCustomActions | (Heredado de UIResponder) |
| AccessibilityDirectTouchOptions | (Heredado de UIView) |
| AccessibilityDragSourceDescriptors | (Heredado de UIResponder) |
| AccessibilityDropPointDescriptors | (Heredado de UIResponder) |
| AccessibilityElementsHidden | (Heredado de UIView) |
| AccessibilityExpandedStatus | (Heredado de UIView) |
| AccessibilityFrame | (Heredado de UIView) |
| AccessibilityHeaderElements | (Heredado de UIView) |
| AccessibilityHint | (Heredado de UIView) |
| AccessibilityIdentifier |
Identifica |
| AccessibilityIgnoresInvertColors | (Heredado de UIView) |
| AccessibilityLabel | (Heredado de UIView) |
| AccessibilityLanguage | (Heredado de UIView) |
| AccessibilityNavigationStyle | (Heredado de UIView) |
| AccessibilityPath | (Heredado de UIView) |
| AccessibilityRespondsToUserInteraction | (Heredado de UIView) |
| AccessibilityTextualContext | (Heredado de UIView) |
| AccessibilityTraits | (Heredado de UIView) |
| AccessibilityUserInputLabels | (Heredado de UIView) |
| AccessibilityValue | (Heredado de UIView) |
| AccessibilityViewIsModal | (Heredado de UIView) |
| ActivityItemsConfiguration | (Heredado de UIResponder) |
| AdjustsFontForContentSizeCategory | |
| AdjustsFontSizeToFitWidth | |
| AlignmentRectInsets | (Heredado de UIView) |
| AllControlEvents | (Heredado de UIControl) |
| AllowedWritingToolsResultOptions | |
| AllowsEditingTextAttributes | |
| AllowsNumberPadPopover | |
| AllTargets | (Heredado de UIControl) |
| Alpha | (Heredado de UIView) |
| AnchorPoint | (Heredado de UIView) |
| Appearance |
Propiedad fuertemente tipada que devuelve la clase UIAppearance para esta clase. |
| AppliedContentSizeCategoryLimitsDescription | (Heredado de UIView) |
| AttributedPlaceholder | |
| AttributedText | |
| AutocapitalizationType |
utilizado UITextAutocapitalizationType por .IUITextInput |
| AutocorrectionType |
utilizado UITextAutocorrectionType por .IUITextInput |
| AutoresizingMask | (Heredado de UIView) |
| AutosizesSubviews | (Heredado de UIView) |
| Background | |
| BackgroundColor |
Color usado para el fondo. (Heredado de UIView) |
| BeginningOfDocument |
Posición del texto que indica el principio de un documento. |
| BorderStyle | |
| BottomAnchor | (Heredado de UIView) |
| Bounds | (Heredado de UIView) |
| CanBecomeFirstResponder | (Heredado de UIResponder) |
| CanBecomeFocused | (Heredado de UIView) |
| CanResignFirstResponder | (Heredado de UIResponder) |
| Center | (Heredado de UIView) |
| CenterXAnchor | (Heredado de UIView) |
| CenterYAnchor | (Heredado de UIView) |
| Class | (Heredado de NSObject) |
| ClassHandle |
Identificador de clase Objective-C para esta clase. |
| ClearButtonMode | |
| ClearsContextBeforeDrawing | (Heredado de UIView) |
| ClearsOnBeginEditing | |
| ClearsOnInsertion | |
| ClipsToBounds | (Heredado de UIView) |
| CollisionBoundingPath |
Devuelve la ruta de acceso cerrada que se usa para la detección de colisiones. (Heredado de UIView) |
| CollisionBoundsType |
Devuelve un valor que indica cómo se especifican los límites de colisión. (Heredado de UIView) |
| Constraints | (Heredado de UIView) |
| ContentMode | (Heredado de UIView) |
| ContentScaleFactor | (Heredado de UIView) |
| ContentStretch | (Heredado de UIView) |
| ContextMenuInteraction | (Heredado de UIControl) |
| ContextMenuInteractionEnabled | (Heredado de UIControl) |
| ConversationContext | |
| CoordinateSpace |
Obtiene la implementación del espacio de coordenadas. (Heredado de UIView) |
| CornerConfiguration | (Heredado de UIView) |
| CurrentInputModeDidChangeNotification |
Constante de notificación para CurrentInputModeDidChange |
| DebugDescription | (Heredado de NSObject) |
| Delegate |
Instancia de la clase de modelo UIKit.IUITextFieldDelegate que actúa como delegado de clase. |
| Description | (Heredado de NSObject) |
| DidEndEditingReasonKey | |
| DirectionalLayoutMargins | (Heredado de UIView) |
| DisabledBackground | |
| Editable | |
| EditingInteractionConfiguration | (Heredado de UIResponder) |
| EffectiveContentHorizontalAlignment | (Heredado de UIControl) |
| EffectiveUserInterfaceLayoutDirection | (Heredado de UIView) |
| Enabled |
Indica si este UIControl está habilitado. (Heredado de UIControl) |
| EnablesReturnKeyAutomatically |
Indica si la clave de retorno está habilitada automáticamente. |
| EndOfDocument |
Posición del texto que indica el principio de un documento. |
| ExclusiveTouch |
Restringe la entrega de eventos a esta vista. (Heredado de UIView) |
| FirstBaselineAnchor | (Heredado de UIView) |
| Focused |
Indica si es UIView la vista centrada. (Heredado de UIView) |
| FocusEffect | (Heredado de UIView) |
| FocusGroupIdentifier | (Heredado de UIView) |
| FocusGroupPriority | (Heredado de UIView) |
| FocusItemContainer |
Obtiene el contenedor que administra la información de foco para los elementos de foco secundarios. (Heredado de UIView) |
| FocusItemDeferralMode | (Heredado de UIView) |
| Font | |
| Frame | (Heredado de UIView) |
| GestureRecognizers | (Heredado de UIView) |
| Handle |
Controla (puntero) a la representación de objeto no administrada. (Heredado de NSObject) |
| HasAmbiguousLayout | (Heredado de UIView) |
| HasText |
Obtiene un valor que indica si la entrada de la clave tiene texto en él. |
| HeightAnchor | (Heredado de UIView) |
| Hidden |
Especifica si se UIView muestra o no. (Heredado de UIView) |
| Highlighted |
Indica si este UIControl está resaltado. (Heredado de UIControl) |
| HorizontalAlignment | (Heredado de UIControl) |
| HoverStyle | (Heredado de UIView) |
| InlinePredictionType | |
| InputAccessoryView | |
| InputAccessoryViewController | (Heredado de UIResponder) |
| InputAssistantItem | (Heredado de UIResponder) |
| InputDelegate |
Objeto delegado de entrada para este UITextFieldobjeto . |
| InputView | |
| InputViewController | (Heredado de UIResponder) |
| InsetsLayoutMarginsFromSafeArea | (Heredado de UIView) |
| Interactions | (Heredado de UIView) |
| InteractionState | |
| IntrinsicContentSize | (Heredado de UIView) |
| IsAccessibilityElement | (Heredado de UIView) |
| IsDirectBinding |
Obtiene o establece un valor que indica si esta instancia usa Objective-C enlace directo. (Heredado de NSObject) |
| IsEditing |
Valor que indica si el usuario está editando el texto en la vista. Read-only. |
| IsFirstResponder | (Heredado de UIResponder) |
| IsProxy | (Heredado de NSObject) |
| IsTransparentFocusItem | (Heredado de UIView) |
| KeyboardAppearance |
utilizado UIKeyboardAppearance por . IUITextInput |
| KeyboardLayoutGuide | (Heredado de UIView) |
| KeyboardType |
utilizado UIKeyboardType por .IUITextInput |
| KeyCommands | (Heredado de UIResponder) |
| LargeContentImage | (Heredado de UIView) |
| LargeContentImageInsets | (Heredado de UIView) |
| LargeContentTitle | (Heredado de UIView) |
| LastBaselineAnchor | (Heredado de UIView) |
| Layer | (Heredado de UIView) |
| LayoutGuides | (Heredado de UIView) |
| LayoutMargins | (Heredado de UIView) |
| LayoutMarginsGuide | (Heredado de UIView) |
| LeadingAnchor | (Heredado de UIView) |
| LeftAnchor | (Heredado de UIView) |
| LeftView | |
| LeftViewMode | |
| MarkedTextRange |
Intervalo de texto marcado actualmente en un documento determinado. |
| MarkedTextStyle |
Diccionario de atributos que describe cómo se debe dibujar el texto. |
| MaskView | (Heredado de UIView) |
| MathExpressionCompletionType | |
| MaximumContentSizeCategory | (Heredado de UIView) |
| MinimumContentSizeCategory | (Heredado de UIView) |
| MinimumFontSize | |
| MotionEffects | (Heredado de UIView) |
| MultipleTouchEnabled |
Controla si uiView puede controlar eventos multitouch. (Heredado de UIView) |
| NextResponder | (Heredado de UIResponder) |
| Opaque |
Determina si la vista es opaca o no. (Heredado de UIView) |
| OverrideUserInterfaceStyle | (Heredado de UIView) |
| ParentFocusEnvironment |
Obtiene el entorno de enfoque primario. (Heredado de UIView) |
| PasswordRules |
Reglas de entrada de contraseña. |
| PasteConfiguration |
Compatible UIPasteConfiguration con |
| PasteDelegate |
Obtiene el delegado para controlar el pegado de texto y las colocaciones de texto. |
| Placeholder | |
| PreferredFocusedView |
Si no es |
| PreferredFocusEnvironments |
Obtiene la lista de entornos de enfoque ordenados por prioridad, que el entorno prefiere al actualizar el foco. (Heredado de UIView) |
| PreservesSuperviewLayoutMargins | (Heredado de UIView) |
| ReadableContentGuide | (Heredado de UIView) |
| RestorationIdentifier | (Heredado de UIView) |
| RetainCount | (Heredado de NSObject) |
| ReturnKeyType |
Forma de la clave de retorno para .IUITextInput |
| RightAnchor | (Heredado de UIView) |
| RightView | |
| RightViewMode | |
| SafeAreaInsets | (Heredado de UIView) |
| SafeAreaLayoutGuide | (Heredado de UIView) |
| ScalesLargeContentImage | (Heredado de UIView) |
| SecureTextEntry |
Si el texto escrito debe estar oculto. |
| Selected |
Indica si se selecciona este UIControl. (Heredado de UIControl) |
| SelectedTextRange |
Intervalo del texto seleccionado de un documento. |
| SelectionAffinity |
Valor que controla si el cursor se muestra al principio de la última línea o al final de la segunda a la última línea de una selección de varias líneas. |
| Self | (Heredado de NSObject) |
| SemanticContentAttribute | (Heredado de UIView) |
| ShouldBeginEditing |
Se genera cuando el campo de texto quiere saber si debe comenzar la edición. |
| ShouldChangeCharacters |
Se genera cuando el campo de texto desea saber si se debe cambiar el texto del campo de texto. |
| ShouldChangeCharactersInRanges |
Se genera cuando el campo de texto quiere saber si el texto del campo de texto debe cambiarse para varios intervalos. |
| ShouldClear |
Se genera cuando el campo de texto desea saber si se debe borrar el texto del campo de texto. |
| ShouldEndEditing |
Se genera cuando el campo de texto quiere saber si la edición debe finalizar. |
| ShouldGroupAccessibilityChildren | (Heredado de UIView) |
| ShouldReturn |
Se genera cuando se presiona la tecla 'Return' y el campo de texto quiere saber si debe procesar esta tecla o no mediante el comportamiento predeterminado. |
| ShowsLargeContentViewer | (Heredado de UIView) |
| ShowsMenuAsPrimaryAction | (Heredado de UIControl) |
| SizingRule | |
| SmartDashesType |
Estilo de guiones inteligentes. |
| SmartInsertDeleteType |
Estilo de inserción inteligente. |
| SmartQuotesType |
Estilo de comillas inteligentes. |
| SpellCheckingType |
Obtiene o establece un valor que indica si la revisión ortográfica está activada, desactivada o si la revisión ortográfica solo se habilitará cuando se habilite el autocompletar (valor predeterminado). |
| State | (Heredado de UIControl) |
| Subviews | (Heredado de UIView) |
| Superclass | (Heredado de NSObject) |
| SuperHandle |
Identificador usado para representar los métodos de la clase base para este NSObject. (Heredado de NSObject) |
| Superview | (Heredado de UIView) |
| SupportsAdaptiveImageGlyph | |
| SymbolAnimationEnabled | (Heredado de UIControl) |
| Tag | (Heredado de UIView) |
| Text | |
| TextAlignment | |
| TextBackgroundColorKey |
Los desarrolladores no deben usar esta propiedad en desuso. Los desarrolladores deben usar "NSAttributedString.BackgroundColorAttributeName". |
| TextColor | |
| TextColorKey |
La propiedad contiene la clave que se debe usar para recuperar el valor del color de texto de un NSDictionary. |
| TextContentType |
La semántica de la entrada esperada, que permite al sistema, por ejemplo, proporcionar teclados personalizados. |
| TextDidBeginEditingNotification |
Constante de notificación para TextDidBeginEditing |
| TextDidEndEditingNotification |
Constante de notificación para TextDidEndEditing |
| TextDragActive |
Obtiene un valor booleano que indica si una sesión de arrastre está activa para la vista de texto. |
| TextDragDelegate |
Obtiene o establece un delegado para administrar el comportamiento de origen de arrastre. |
| TextDragInteraction |
Obtiene la interacción de arrastre en la vista de texto. |
| TextDragOptions |
Obtiene un valor que controla cómo se muestra el formato en texto arrastrado. |
| TextDropActive |
Obtiene un valor booleano que indica si hay una sesión de colocación de texto activa en la vista. |
| TextDropDelegate |
Obtiene o establece un delegado para administrar el comportamiento de eliminación de texto. |
| TextDropInteraction |
Obtiene la interacción de colocación en la vista de texto. |
| TextFieldTextDidChangeNotification |
Constante de notificación para TextFieldTextDidChange |
| TextFontKey |
La propiedad contiene la clave que se debe usar para recuperar el valor de la fuente del texto de .NSDictionary |
| TextInputContextIdentifier | (Heredado de UIResponder) |
| TextInputMode | (Heredado de UIResponder) |
| TextInputView |
Devuelve la vista de entrada que proporciona el sistema de coordenadas para las operaciones geométricas dentro de la entrada de texto. |
| TintAdjustmentMode | (Heredado de UIView) |
| TintColor |
Color utilizado para la tinción. (Heredado de UIView) |
| Tokenizer |
Esta propiedad proporciona información sobre el tokenizador que se usaría para dividir el texto en unidades como caracteres, palabras, líneas y párrafos. |
| ToolTip | (Heredado de UIControl) |
| ToolTipInteraction | (Heredado de UIControl) |
| TopAnchor | (Heredado de UIView) |
| TouchBar | (Heredado de UIResponder) |
| TouchInside |
Si un toque está dentro de este UIControl. Read-only. (Heredado de UIControl) |
| Tracking |
Indica si uiControl está realizando un seguimiento de los toques relacionados con un evento. Read-only. (Heredado de UIControl) |
| TrailingAnchor | (Heredado de UIView) |
| TraitCollection |
Obtiene la colección de rasgos que describe el entorno. (Heredado de UIView) |
| TraitOverrides | (Heredado de UIView) |
| Transform | (Heredado de UIView) |
| Transform3D | (Heredado de UIView) |
| TranslatesAutoresizingMaskIntoConstraints | (Heredado de UIView) |
| TypingAttributes | |
| UndoManager | (Heredado de UIResponder) |
| UnobscuredContentRect | |
| UserActivity | (Heredado de UIResponder) |
| UserInteractionEnabled |
Determina si esta vista procesa los eventos de entrada. (Heredado de UIView) |
| VerticalAlignment | (Heredado de UIControl) |
| ViewForBaselineLayout | (Heredado de UIView) |
| ViewForFirstBaselineLayout | (Heredado de UIView) |
| ViewForLastBaselineLayout | (Heredado de UIView) |
| ViewPrintFormatter | (Heredado de UIView) |
| WeakDefaultTextAttributes | |
| WeakDelegate | |
| WeakInputDelegate |
Indica un delegado de entrada débil. |
| WeakTokenizer |
Indica un tokenizador débil. |
| WidthAnchor | (Heredado de UIView) |
| Window | (Heredado de UIView) |
| WritingToolsBehavior | |
| Zone | (Heredado de NSObject) |
Métodos
Eventos
| Nombre | Description |
|---|---|
| AllEditingEvents |
Se genera para cualquier evento de edición. (Heredado de UIControl) |
| AllEvents |
Se genera para cualquier evento. (Heredado de UIControl) |
| AllTouchEvents |
Se genera para cualquier evento táctil. (Heredado de UIControl) |
| DidChangeSelection |
Se genera cuando cambia la selección de texto. |
| EditingChanged |
Se genera cuando el valor de edición ha cambiado. (Heredado de UIControl) |
| EditingDidBegin |
Se genera al iniciar la edición. (Heredado de UIControl) |
| EditingDidEnd |
Se genera al finalizar la edición. (Heredado de UIControl) |
| EditingDidEndOnExit |
Se genera al finalizar la edición y el usuario salió del control. (Heredado de UIControl) |
| Ended |
Se genera al finalizar la edición. |
| EndedWithReason |
Evento que se genera cuando finaliza la edición. |
| PrimaryActionTriggered |
Se genera cuando se desencadena la acción principal asociada a esto UIControl . (Heredado de UIControl) |
| Started |
Se genera al iniciar la edición. |
| TouchCancel |
Se genera cuando se cancela el evento táctil. (Heredado de UIControl) |
| TouchDown |
Se genera cuando el usuario toca el control. (Heredado de UIControl) |
| TouchDownRepeat |
Se genera cuando el usuario pulsa doblemente el control. (Heredado de UIControl) |
| TouchDragEnter |
Se genera en TouchDragEnter eventos. (Heredado de UIControl) |
| TouchDragExit |
Se genera en TouchDragExit eventos. (Heredado de UIControl) |
| TouchDragInside |
Se genera en TouchDragInside eventos. (Heredado de UIControl) |
| TouchDragOutside |
Se genera en TouchDragOutside eventos. (Heredado de UIControl) |
| TouchUpInside |
Se genera en TouchUpInside eventos. (Heredado de UIControl) |
| TouchUpOutside |
Se genera en TouchUpOutside eventos. (Heredado de UIControl) |
| ValueChanged |
Se genera cuando el valor ha cambiado. (Heredado de UIControl) |