UIButton 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("UIButton", true)]
public class UIButton : UIKit.UIControl, IDisposable, UIKit.IUIAccessibilityContentSizeCategoryImageAdjusting, UIKit.IUISpringLoadedInteractionSupporting
[Foundation.Register("UIButton", true)]
public class UIButton : UIKit.UIControl, IDisposable, UIKit.IUIAccessibilityContentSizeCategoryImageAdjusting
[<Foundation.Register("UIButton", true)>]
type UIButton = class
inherit UIControl
interface IUIAccessibilityContentSizeCategoryImageAdjusting
interface INativeObject
interface IDisposable
interface IUISpringLoadedInteractionSupporting
[<Foundation.Register("UIButton", true)>]
type UIButton = class
inherit UIControl
interface IUIAccessibilityContentSizeCategoryImageAdjusting
interface INativeObject
interface IDisposable
- Ereditarietà
- Derivato
- Attributi
- Implementazioni
Costruttori
| Nome | Descrizione |
|---|---|
| UIButton() |
Crea un nuovo UIButton oggetto con valori predefiniti. |
| UIButton(CGRect, UIAction) | |
| UIButton(CGRect) | |
| UIButton(NativeHandle) |
Costruttore utilizzato durante la creazione di rappresentazioni gestite di oggetti non gestiti. Chiamato dal runtime. |
| UIButton(NSCoder) |
Costruttore che inizializza l'oggetto dai dati archiviati nell'oggetto unarchiver. |
| UIButton(NSObjectFlag) |
Costruttore da chiamare sulle classi derivate per ignorare l'inizializzazione e semplicemente allocare l'oggetto. |
| UIButton(UIButtonType) |
Costruttore preferito per UIButton, ma non può essere usato durante la sottoclasse. |
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) |
| AdjustsImageSizeForAccessibilityContentSizeCategory |
Restituisce |
| AdjustsImageWhenDisabled | |
| AdjustsImageWhenHighlighted | |
| AlignmentRectInsets | (Ereditato da UIView) |
| AllControlEvents | (Ereditato da UIControl) |
| AllTargets | (Ereditato da UIControl) |
| Alpha | (Ereditato da UIView) |
| AnchorPoint | (Ereditato da UIView) |
| Appearance |
Proprietà fortemente tipizzata che restituisce la classe UIAppearance per questa classe. |
| AppliedContentSizeCategoryLimitsDescription | (Ereditato da UIView) |
| AutomaticallyUpdatesConfiguration | |
| AutoresizingMask | (Ereditato da UIView) |
| AutosizesSubviews | (Ereditato da UIView) |
| BackgroundColor |
Colore utilizzato per lo sfondo. (Ereditato da UIView) |
| BehavioralStyle | |
| BottomAnchor | (Ereditato da UIView) |
| Bounds | (Ereditato da UIView) |
| ButtonType | |
| CanBecomeFirstResponder | (Ereditato da UIResponder) |
| CanBecomeFocused | (Ereditato da UIView) |
| CanResignFirstResponder | (Ereditato da UIResponder) |
| Center | (Ereditato da UIView) |
| CenterXAnchor | (Ereditato da UIView) |
| CenterYAnchor | (Ereditato da UIView) |
| ChangesSelectionAsPrimaryAction | |
| 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) |
| Configuration | |
| ConfigurationUpdateHandler | |
| Constraints | (Ereditato da UIView) |
| ContentEdgeInsets | |
| ContentMode | (Ereditato da UIView) |
| ContentScaleFactor | (Ereditato da UIView) |
| ContentStretch | (Ereditato da UIView) |
| ContextMenuInteraction | (Ereditato da UIControl) |
| ContextMenuInteractionEnabled | (Ereditato da UIControl) |
| CoordinateSpace |
Ottiene l'implementazione dello spazio delle coordinate. (Ereditato da UIView) |
| CornerConfiguration | (Ereditato da UIView) |
| CurrentAttributedTitle | |
| CurrentBackgroundImage |
UIImage attivo visualizzato in background di UIButton. |
| CurrentImage |
Immagine corrente visualizzata sul pulsante. Read-only. |
| CurrentPreferredSymbolConfiguration | |
| CurrentTitle | |
| CurrentTitleColor |
Colore corrente del titolo del pulsante. Read-only. |
| CurrentTitleShadowColor |
Colore corrente dell'ombreggiatura del titolo. |
| DebugDescription | (Ereditato da NSObject) |
| Description | (Ereditato da NSObject) |
| DirectionalLayoutMargins | (Ereditato da UIView) |
| EditingInteractionConfiguration | (Ereditato da UIResponder) |
| EffectiveContentHorizontalAlignment | (Ereditato da UIControl) |
| EffectiveUserInterfaceLayoutDirection | (Ereditato da UIView) |
| Enabled |
Indica se uiControl è abilitato. (Ereditato da UIControl) |
| 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) |
| Held | |
| Hidden |
Specifica se l'oggetto UIView viene visualizzato o meno. (Ereditato da UIView) |
| Highlighted |
Indica se uiControl è evidenziato. (Ereditato da UIControl) |
| HorizontalAlignment | (Ereditato da UIControl) |
| Hovered | |
| HoverStyle | (Ereditato da UIView) |
| ImageEdgeInsets | |
| ImageView | |
| InputAccessoryView | (Ereditato da UIResponder) |
| InputAccessoryViewController | (Ereditato da UIResponder) |
| InputAssistantItem | (Ereditato da UIResponder) |
| 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) |
| KeyboardLayoutGuide | (Ereditato da UIView) |
| 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) |
| MaskView | (Ereditato da UIView) |
| MaximumContentSizeCategory | (Ereditato da UIView) |
| Menu | |
| 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) |
| PasteConfiguration |
Oggetto supportato dall'oggetto UIPasteConfiguration |
| PointerInteractionEnabled | |
| PointerStyleProvider | |
| PreferredBehavioralStyle | |
| 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) |
| PreferredMenuElementOrder | |
| PreservesSuperviewLayoutMargins | (Ereditato da UIView) |
| ReadableContentGuide | (Ereditato da UIView) |
| RestorationIdentifier | (Ereditato da UIView) |
| RetainCount | (Ereditato da NSObject) |
| ReverseTitleShadowWhenHighlighted | |
| RightAnchor | (Ereditato da UIView) |
| Role | |
| SafeAreaInsets | (Ereditato da UIView) |
| SafeAreaLayoutGuide | (Ereditato da UIView) |
| ScalesLargeContentImage | (Ereditato da UIView) |
| Selected |
Indica se l'opzione UIControl è selezionata. (Ereditato da UIControl) |
| Self | (Ereditato da NSObject) |
| SemanticContentAttribute | (Ereditato da UIView) |
| ShouldGroupAccessibilityChildren | (Ereditato da UIView) |
| ShowsLargeContentViewer | (Ereditato da UIView) |
| ShowsMenuAsPrimaryAction | (Ereditato da UIControl) |
| ShowsTouchWhenHighlighted | |
| SpringLoaded |
Ottiene o imposta un valore booleano che controlla se l'oggetto partecipa alle interazioni a molla. |
| State | (Ereditato da UIControl) |
| SubtitleLabel | |
| 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) |
| SymbolAnimationEnabled | (Ereditato da UIControl) |
| Tag | (Ereditato da UIView) |
| TextInputContextIdentifier | (Ereditato da UIResponder) |
| TextInputMode | (Ereditato da UIResponder) |
| TintAdjustmentMode | (Ereditato da UIView) |
| TintColor |
Colore utilizzato per la tinta. (Ereditato da UIView) |
| TitleEdgeInsets | |
| TitleLabel | |
| ToolTip | (Ereditato da UIControl) |
| ToolTipInteraction | (Ereditato da UIControl) |
| TopAnchor | (Ereditato da UIView) |
| TouchBar | (Ereditato da UIResponder) |
| TouchInside |
Indica se un tocco si trova all'interno di questo uiControl. Read-only. (Ereditato da UIControl) |
| Tracking |
Indica se questo uiControl sta monitorando i tocco correlati a un evento. Read-only. (Ereditato da UIControl) |
| 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) |
| UndoManager | (Ereditato da UIResponder) |
| UserActivity | (Ereditato da UIResponder) |
| UserInteractionEnabled |
Determina se gli eventi di input vengono elaborati da questa visualizzazione. (Ereditato da UIView) |
| VerticalAlignment | (Ereditato da UIControl) |
| ViewForBaselineLayout | (Ereditato da UIView) |
| ViewForFirstBaselineLayout | (Ereditato da UIView) |
| ViewForLastBaselineLayout | (Ereditato da UIView) |
| ViewPrintFormatter | (Ereditato da UIView) |
| WidthAnchor | (Ereditato da UIView) |
| Window | (Ereditato da UIView) |
| Zone | (Ereditato da NSObject) |
Metodi
Eventi
| Nome | Descrizione |
|---|---|
| AllEditingEvents |
Generato per qualsiasi evento di modifica. (Ereditato da UIControl) |
| AllEvents |
Generato per qualsiasi evento. (Ereditato da UIControl) |
| AllTouchEvents |
Generato per qualsiasi evento di tocco. (Ereditato da UIControl) |
| EditingChanged |
Generato quando il valore di modifica è stato modificato. (Ereditato da UIControl) |
| EditingDidBegin |
Generato all'avvio della modifica. (Ereditato da UIControl) |
| EditingDidEnd |
Generato al termine della modifica. (Ereditato da UIControl) |
| EditingDidEndOnExit |
Generato al termine della modifica e l'utente ha chiuso il controllo. (Ereditato da UIControl) |
| PrimaryActionTriggered |
Generato quando viene attivata l'azione primaria associata a questo UIControl . (Ereditato da UIControl) |
| TouchCancel |
Generato quando l'evento di tocco è stato annullato. (Ereditato da UIControl) |
| TouchDown |
Generato quando l'utente tocca il controllo. (Ereditato da UIControl) |
| TouchDownRepeat |
Generato quando l'utente tocca due volte il controllo. (Ereditato da UIControl) |
| TouchDragEnter |
Generato sugli TouchDragEnter eventi. (Ereditato da UIControl) |
| TouchDragExit |
Generato sugli TouchDragExit eventi. (Ereditato da UIControl) |
| TouchDragInside |
Generato sugli TouchDragInside eventi. (Ereditato da UIControl) |
| TouchDragOutside |
Generato sugli TouchDragOutside eventi. (Ereditato da UIControl) |
| TouchUpInside |
Generato sugli TouchUpInside eventi. (Ereditato da UIControl) |
| TouchUpOutside |
Generato sugli TouchUpOutside eventi. (Ereditato da UIControl) |
| ValueChanged |
Generato quando il valore è stato modificato. (Ereditato da UIControl) |