UISearchBar Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
[Foundation.Register("UISearchBar", true)]
public class UISearchBar : UIKit.UIView, IDisposable, UIKit.IUIBarPositioning, UIKit.IUILookToDictateCapable, UIKit.IUITextInputTraits
[<Foundation.Register("UISearchBar", true)>]
type UISearchBar = class
inherit UIView
interface INSCoding
interface INativeObject
interface IDisposable
interface IUIBarPositioning
interface IUILookToDictateCapable
interface IUITextInputTraits
[<Foundation.Register("UISearchBar", true)>]
type UISearchBar = class
inherit UIView
interface IUIBarPositioning
interface INativeObject
interface IDisposable
interface IUILookToDictateCapable
interface IUITextInputTraits
- Ereditarietà
- Attributi
- Implementazioni
Costruttori
| Nome | Descrizione |
|---|---|
| UISearchBar() |
Crea un nuovo UISearchBar oggetto con valori predefiniti. |
| UISearchBar(CGRect) | |
| UISearchBar(NativeHandle) |
Costruttore utilizzato durante la creazione di rappresentazioni gestite di oggetti non gestiti. Chiamato dal runtime. |
| UISearchBar(NSCoder) |
Costruttore che inizializza l'oggetto dai dati archiviati nell'oggetto unarchiver. |
| UISearchBar(NSObjectFlag) |
Costruttore da chiamare sulle classi derivate per ignorare l'inizializzazione e semplicemente allocare l'oggetto. |
Proprietà
| Nome | Descrizione |
|---|---|
| AccessibilityActivationPoint | (Ereditato da UIView) |
| AccessibilityAssistiveTechnologyFocusedIdentifiers | (Ereditato da UIResponder) |
| AccessibilityAttributedHint | (Ereditato da UIView) |
| AccessibilityAttributedLabel | (Ereditato da UIView) |
| AccessibilityAttributedUserInputLabels | (Ereditato da UIView) |
| AccessibilityAttributedValue | (Ereditato da UIView) |
| AccessibilityCustomActions | (Ereditato da UIResponder) |
| AccessibilityDirectTouchOptions | (Ereditato da UIView) |
| AccessibilityDragSourceDescriptors | (Ereditato da UIResponder) |
| AccessibilityDropPointDescriptors | (Ereditato da UIResponder) |
| AccessibilityElementsHidden | (Ereditato da UIView) |
| AccessibilityExpandedStatus | (Ereditato da UIView) |
| AccessibilityFrame | (Ereditato da UIView) |
| AccessibilityHeaderElements | (Ereditato da UIView) |
| AccessibilityHint | (Ereditato da UIView) |
| AccessibilityIdentifier |
Identifica |
| AccessibilityIgnoresInvertColors | (Ereditato da UIView) |
| AccessibilityLabel | (Ereditato da UIView) |
| AccessibilityLanguage | (Ereditato da UIView) |
| AccessibilityNavigationStyle | (Ereditato da UIView) |
| AccessibilityPath | (Ereditato da UIView) |
| AccessibilityRespondsToUserInteraction | (Ereditato da UIView) |
| AccessibilityTextualContext | (Ereditato da UIView) |
| AccessibilityTraits | (Ereditato da UIView) |
| AccessibilityUserInputLabels | (Ereditato da UIView) |
| AccessibilityValue | (Ereditato da UIView) |
| AccessibilityViewIsModal | (Ereditato da UIView) |
| ActivityItemsConfiguration | (Ereditato da UIResponder) |
| AlignmentRectInsets | (Ereditato da UIView) |
| AllowedWritingToolsResultOptions | |
| AllowsNumberPadPopover | |
| Alpha | (Ereditato da UIView) |
| AnchorPoint | (Ereditato da UIView) |
| Appearance |
Proprietà fortemente tipizzata che restituisce la classe UIAppearance per questa classe. |
| AppliedContentSizeCategoryLimitsDescription | (Ereditato da UIView) |
| AutocapitalizationType |
Oggetto UITextAutocapitalizationType utilizzato dall'oggetto IUITextInput. |
| AutocorrectionType |
Oggetto UITextAutocorrectionType utilizzato dall'oggetto IUITextInput. |
| AutoresizingMask | (Ereditato da UIView) |
| AutosizesSubviews | (Ereditato da UIView) |
| BackgroundColor |
Colore utilizzato per lo sfondo. (Ereditato da UIView) |
| BackgroundImage |
UIImage usato per lo sfondo della barra di ricerca. |
| BarPosition |
Ottiene la posizione della barra. |
| BarStyle | |
| BarTintColor |
Tinta dello sfondo della barra di ricerca. |
| BottomAnchor | (Ereditato da UIView) |
| Bounds | (Ereditato da UIView) |
| CanBecomeFirstResponder | (Ereditato da UIResponder) |
| CanBecomeFocused | (Ereditato da UIView) |
| CanResignFirstResponder | (Ereditato da UIResponder) |
| Center | (Ereditato da UIView) |
| CenterXAnchor | (Ereditato da UIView) |
| CenterYAnchor | (Ereditato da UIView) |
| Class | (Ereditato da NSObject) |
| ClassHandle |
Handle della classe Objective-C per questa classe. |
| ClearsContextBeforeDrawing | (Ereditato da UIView) |
| ClipsToBounds | (Ereditato da UIView) |
| CollisionBoundingPath |
Restituisce il percorso chiuso utilizzato per il rilevamento delle collisioni. (Ereditato da UIView) |
| CollisionBoundsType |
Restituisce un valore che indica il modo in cui vengono specificati i limiti di collisione. (Ereditato da UIView) |
| Constraints | (Ereditato da UIView) |
| ContentMode | (Ereditato da UIView) |
| ContentScaleFactor | (Ereditato da UIView) |
| ContentStretch | (Ereditato da UIView) |
| ConversationContext | |
| CoordinateSpace |
Ottiene l'implementazione dello spazio delle coordinate. (Ereditato da UIView) |
| CornerConfiguration | (Ereditato da UIView) |
| DebugDescription | (Ereditato da NSObject) |
| Delegate |
Istanza della classe del modello UIKit.IUISearchBarDelegate che funge da delegato di classe. |
| Description | (Ereditato da NSObject) |
| DirectionalLayoutMargins | (Ereditato da UIView) |
| EditingInteractionConfiguration | (Ereditato da UIResponder) |
| EffectiveUserInterfaceLayoutDirection | (Ereditato da UIView) |
| Enabled | |
| EnablesReturnKeyAutomatically |
Indica se la chiave restituita è abilitata automaticamente. |
| ExclusiveTouch |
Limita il recapito degli eventi a questa visualizzazione. (Ereditato da UIView) |
| FirstBaselineAnchor | (Ereditato da UIView) |
| Focused |
Indica se è UIView la visualizzazione con stato attivo. (Ereditato da UIView) |
| FocusEffect | (Ereditato da UIView) |
| FocusGroupIdentifier | (Ereditato da UIView) |
| FocusGroupPriority | (Ereditato da UIView) |
| FocusItemContainer |
Ottiene il contenitore che gestisce le informazioni sullo stato attivo per gli elementi dello stato attivo figlio. (Ereditato da UIView) |
| FocusItemDeferralMode | (Ereditato da UIView) |
| Frame | (Ereditato da UIView) |
| GestureRecognizers | (Ereditato da UIView) |
| Handle |
Handle (puntatore) alla rappresentazione dell'oggetto non gestito. (Ereditato da NSObject) |
| HasAmbiguousLayout | (Ereditato da UIView) |
| HeightAnchor | (Ereditato da UIView) |
| Hidden |
Specifica se l'oggetto UIView viene visualizzato o meno. (Ereditato da UIView) |
| HoverStyle | (Ereditato da UIView) |
| InlinePredictionType | |
| InputAccessoryView | |
| InputAccessoryViewController | (Ereditato da UIResponder) |
| InputAssistantItem | |
| InputView | (Ereditato da UIResponder) |
| InputViewController | (Ereditato da UIResponder) |
| InsetsLayoutMarginsFromSafeArea | (Ereditato da UIView) |
| Interactions | (Ereditato da UIView) |
| IntrinsicContentSize | (Ereditato da UIView) |
| IsAccessibilityElement | (Ereditato da UIView) |
| IsDirectBinding |
Ottiene o imposta un valore che indica se questa istanza utilizza l'associazione diretta Objective-C. (Ereditato da NSObject) |
| IsFirstResponder | (Ereditato da UIResponder) |
| IsProxy | (Ereditato da NSObject) |
| IsTransparentFocusItem | (Ereditato da UIView) |
| KeyboardAppearance |
Oggetto UIKeyboardAppearance utilizzato dall'oggetto IUITextInput |
| KeyboardLayoutGuide | (Ereditato da UIView) |
| KeyboardType |
Oggetto UIKeyboardType utilizzato dall'oggetto IUITextInput. |
| KeyCommands | (Ereditato da UIResponder) |
| LargeContentImage | (Ereditato da UIView) |
| LargeContentImageInsets | (Ereditato da UIView) |
| LargeContentTitle | (Ereditato da UIView) |
| LastBaselineAnchor | (Ereditato da UIView) |
| Layer | (Ereditato da UIView) |
| LayoutGuides | (Ereditato da UIView) |
| LayoutMargins | (Ereditato da UIView) |
| LayoutMarginsGuide | (Ereditato da UIView) |
| LeadingAnchor | (Ereditato da UIView) |
| LeftAnchor | (Ereditato da UIView) |
| LookToDictateEnabled | |
| MaskView | (Ereditato da UIView) |
| MathExpressionCompletionType | |
| MaximumContentSizeCategory | (Ereditato da UIView) |
| MinimumContentSizeCategory | (Ereditato da UIView) |
| MotionEffects | (Ereditato da UIView) |
| MultipleTouchEnabled |
Controlla se UIView può gestire eventi multitouch. (Ereditato da UIView) |
| NextResponder | (Ereditato da UIResponder) |
| Opaque |
Determina se la visualizzazione è opaca o meno. (Ereditato da UIView) |
| OverrideUserInterfaceStyle | (Ereditato da UIView) |
| ParentFocusEnvironment |
Ottiene l'ambiente dello stato attivo padre. (Ereditato da UIView) |
| PasswordRules |
Regole di immissione della password. |
| PasteConfiguration |
Oggetto supportato dall'oggetto UIPasteConfiguration |
| Placeholder | |
| PreferredFocusedView |
Se non |
| PreferredFocusEnvironments |
Ottiene l'elenco degli ambienti di stato attivo, ordinati in base alla priorità, che l'ambiente preferisce durante l'aggiornamento dello stato attivo. (Ereditato da UIView) |
| PreservesSuperviewLayoutMargins | (Ereditato da UIView) |
| Prompt | |
| ReadableContentGuide | (Ereditato da UIView) |
| RestorationIdentifier | (Ereditato da UIView) |
| RetainCount | (Ereditato da NSObject) |
| ReturnKeyType |
Forma della chiave restituita per l'oggetto IUITextInput. |
| RightAnchor | (Ereditato da UIView) |
| SafeAreaInsets | (Ereditato da UIView) |
| SafeAreaLayoutGuide | (Ereditato da UIView) |
| ScalesLargeContentImage | (Ereditato da UIView) |
| ScopeBarBackgroundImage |
Immagine usata come sfondo per la barra dell'ambito. |
| ScopeButtonTitles | |
| SearchBarStyle | |
| SearchFieldBackgroundPositionAdjustment | |
| SearchResultsButtonSelected |
Indica se il pulsante dei risultati della ricerca è selezionato. |
| SearchTextField | |
| SearchTextPositionAdjustment | |
| SecureTextEntry |
Indica se il testo immesso deve essere nascosto. |
| SelectedScopeButtonIndex | |
| Self | (Ereditato da NSObject) |
| SemanticContentAttribute | (Ereditato da UIView) |
| ShouldBeginEditing |
Delegato richiamato dall'oggetto per ottenere un valore. |
| ShouldChangeTextInRange |
Delegato richiamato dall'oggetto per ottenere un valore. |
| ShouldEndEditing |
Delegato richiamato dall'oggetto per ottenere un valore. |
| ShouldGroupAccessibilityChildren | (Ereditato da UIView) |
| ShowsBookmarkButton | |
| ShowsCancelButton | |
| ShowsLargeContentViewer | (Ereditato da UIView) |
| ShowsScopeBar | |
| ShowsSearchResultsButton | |
| SmartDashesType |
Stile trattini intelligenti. |
| SmartInsertDeleteType |
Stile di inserimento intelligente. |
| SmartQuotesType |
Stile virgolette intelligenti. |
| SpellCheckingType |
Ottiene o imposta un valore che indica se il controllo ortografico è attivato, disattivato o se il controllo ortografico verrà abilitato solo quando il completamento automatico è abilitato (impostazione predefinita). |
| Subviews | (Ereditato da UIView) |
| Superclass | (Ereditato da NSObject) |
| SuperHandle |
Handle utilizzato per rappresentare i metodi nella classe di base per questo NSObjectoggetto . (Ereditato da NSObject) |
| Superview | (Ereditato da UIView) |
| Tag | (Ereditato da UIView) |
| Text | |
| TextContentType |
Semantica dell'input previsto, che consente al sistema, ad esempio, di fornire tastiere personalizzate. |
| TextInputContextIdentifier | (Ereditato da UIResponder) |
| TextInputMode | (Ereditato da UIResponder) |
| TintAdjustmentMode | (Ereditato da UIView) |
| TintColor |
Colore utilizzato per la tinta. (Ereditato da UIView) |
| TopAnchor | (Ereditato da UIView) |
| TouchBar | (Ereditato da UIResponder) |
| TrailingAnchor | (Ereditato da UIView) |
| TraitCollection |
Ottiene la raccolta di tratti che descrive l'ambiente. (Ereditato da UIView) |
| TraitOverrides | (Ereditato da UIView) |
| Transform | (Ereditato da UIView) |
| Transform3D | (Ereditato da UIView) |
| TranslatesAutoresizingMaskIntoConstraints | (Ereditato da UIView) |
| Translucent |
True se la barra di ricerca è traslucente. |
| UndoManager | (Ereditato da UIResponder) |
| UserActivity | (Ereditato da UIResponder) |
| UserInteractionEnabled |
Determina se gli eventi di input vengono elaborati da questa visualizzazione. (Ereditato da UIView) |
| ViewForBaselineLayout | (Ereditato da UIView) |
| ViewForFirstBaselineLayout | (Ereditato da UIView) |
| ViewForLastBaselineLayout | (Ereditato da UIView) |
| ViewPrintFormatter | (Ereditato da UIView) |
| WeakDelegate | |
| WidthAnchor | (Ereditato da UIView) |
| Window | (Ereditato da UIView) |
| WritingToolsBehavior | |
| Zone | (Ereditato da NSObject) |
Metodi
Eventi
| Nome | Descrizione |
|---|---|
| BookmarkButtonClicked |
Evento generato dall'oggetto . |
| CancelButtonClicked |
Evento generato dall'oggetto . |
| ListButtonClicked |
Evento generato dall'oggetto . |
| OnEditingStarted |
Evento generato dall'oggetto . |
| OnEditingStopped |
Evento generato dall'oggetto . |
| SearchButtonClicked |
Evento generato dall'oggetto . |
| SelectedScopeButtonIndexChanged |
Evento generato dall'oggetto . |
| TextChanged |
Evento generato dall'oggetto . |