UIKit.UISearchBar Members

The members of UIKit.UISearchBar are listed below.

See Also: Inherited members from UIKit.UIView

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
Initializes the UISearchBar with the specified frame.
A constructor that initializes the object from the data stored in the unarchiver object.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
AppearanceUISearchBar.UISearchBarAppearance. Strongly-typed property that returns the UIAppearance class for this class.
AutocapitalizationTypeUITextAutocapitalizationType. The autocapitalization style used on the text.
AutocorrectionTypeUITextAutocorrectionType. The autocorrection style used on the text.
BackgroundImageUIImage. The UIImage shown in the background of the search bar.
[read-only]
BarPositionUIBarPosition. Gets the UIKit.UIBarPosition of this UIKit.UISearchBar view.
BarStyleUIBarStyle. The appearance of this UISearchBar.
BarTintColorUIColor. The tint applied to the background of this UISearchBar.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
DelegateIUISearchBarDelegate. An instance of the UIKit.UISearchBarDelegate model class which acts as the class delegate.
EnablesReturnKeyAutomaticallybool. Gets or sets whether to enable the return key when a user enters text.
InputAccessoryViewUIView. The custom input accessory for the keyboard of this UISearchBar.
KeyboardAppearanceUIKeyboardAppearance. Gets or sets the appearance of the keyboard that is associated with this UIKit.UISearchBar bar, as a UIKit.UIKeyboardAppearance object.
KeyboardTypeUIKeyboardType. The keyboard style used for the text.
Placeholderstring. A string that is displayed when there is no other text in the text field.
Promptstring. A line of text displayed at the top of this UISearchBar.
ReturnKeyTypeUIReturnKeyType. Gets or sets the UIKit.UIReturnKeyType value for the return key that is associated with this UIKit.UISearchBar bar.
ScopeBarBackgroundImageUIImage. The UIImage used for the background of the scope bar.
ScopeButtonTitlesstring[]. The titles of the scope buttons.
SearchBarStyleUISearchBarStyle. The style used for this UISearchBar's appearance.
SearchFieldBackgroundPositionAdjustmentUIOffset. The offset of the search text field background in this UISearchBar.
SearchResultsButtonSelectedbool. Whether the search results button is selected.
SearchTextPositionAdjustmentUIOffset. The offset of the text in the search text field background.
SecureTextEntrybool. Gets or sets whether this UIKit.UISearchBar bar hides the text that a user enters.
SelectedScopeButtonIndexnint. The index of the selected scope button.
ShouldBeginEditingUISearchBarPredicate. Delegate invoked by the object to get a value.
ShouldChangeTextInRangeUISearchBarRangeEventArgs. Delegate invoked by the object to get a value.
ShouldEndEditingUISearchBarPredicate. Delegate invoked by the object to get a value.
ShowsBookmarkButtonbool. Whether the bookmark button is displayed.
ShowsCancelButtonbool. Whether the cancel button is displayed.
ShowsScopeBarbool. Whether the scope bar is displayed.
ShowsSearchResultsButtonbool. Whether the search results button is displayed.
SpellCheckingTypeUITextSpellCheckingType. The UIKit.UITextSpellCheckingType used on this UIKit.UISearchBar.
Textstring. The current or starting search text.
Translucentbool. True if the search bar is translucent.
WeakDelegateFoundation.NSObject. An object that can respond to the delegate protocol for this type

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UISearchBar.UISearchBarAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
BackgroundImageForBarPosition(UIBarPosition, UIBarMetrics) : UIImage
The UIImage used for the background for the specified position and metrics.
static
GetAppearance<T>() : UISearchBar.UISearchBarAppearance
The strongly-typed IUIAppearance for this object.
static
GetAppearance<T>(UITraitCollection) : UISearchBar.UISearchBarAppearance
Documentation for this section has not yet been entered.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UISearchBar.UISearchBarAppearance
Documentation for this section has not yet been entered.
GetImageForSearchBarIcon(UISearchBarIcon, UIControlState) : UIImage
The UIImage used for the specified search bar icon type and control state.
GetPositionAdjustmentForSearchBarIcon(UISearchBarIcon) : UIOffset
The position adjustment for the specified icon.
GetScopeBarButtonBackgroundImage(UIControlState) : UIImage
The UIImage used for the background for the specified scope bar button and state.
GetScopeBarButtonDividerImage(UIControlState, UIControlState) : UIImage
The UIImage used for the divider for the specified combination of left and right segment states.
GetScopeBarButtonTitleTextAttributes(UIControlState) : UITextAttributes
The text attributes of the scope bar button's title for the specified UIControlState.
GetSearchFieldBackgroundImage(UIControlState) : UIImage
The UIImage used for the background of the search text field for the specified state.
SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics)
Sets the UIImage used for the background for the specified position and metrics.
SetImageforSearchBarIcon(UIImage, UISearchBarIcon, UIControlState)
Sets the icon for the specified search bar icon type and control state.
SetPositionAdjustmentforSearchBarIcon(UIOffset, UISearchBarIcon)
Sets the position adjustment for the specified icon.
SetScopeBarButtonBackgroundImage(UIImage, UIControlState)
Sets the UIImage used as the background image for the specified scope bar button and state.
SetScopeBarButtonDividerImage(UIImage, UIControlState, UIControlState)
Sets the UIImage used as the divider for the specified combination of left and right segment states.
SetScopeBarButtonTitle(UITextAttributes, UIControlState)
The title and attributes of the scope bar button for the specified UIControlState.
SetSearchFieldBackgroundImage(UIImage, UIControlState)
Sets the UIImage used as the background for the search text field for the specified state.
SetShowsCancelButton(bool, bool)
Sets the display state of the cancel button, optionally animating the change.

Protected Methods

override
Dispose(bool)
Releases the resources used by the UISearchBar object.

Public Events

BookmarkButtonClickedEvent raised by the object.
CancelButtonClickedEvent raised by the object.
ListButtonClickedEvent raised by the object.
OnEditingStartedEvent raised by the object.
OnEditingStoppedEvent raised by the object.
SearchButtonClickedEvent raised by the object.
SelectedScopeButtonIndexChangedEvent raised by the object.
TextChangedEvent raised by the object.