UISearchBar.UISearchBarAppearance UISearchBar.UISearchBarAppearance Class

Definition

Appearance class for objects of type UISearchBar.

public class UISearchBar.UISearchBarAppearance : UIKit.UIView.UIViewAppearance
type UISearchBar.UISearchBarAppearance = class
    inherit UIView.UIViewAppearance
Inheritance
UIKit.UIView+UIViewAppearanceUIKit.UIView+UIViewAppearance
UISearchBar.UISearchBarAppearanceUISearchBar.UISearchBarAppearance

Remarks

This appearance class is a strongly typed subclass of UIAppearance that is intended to be used with objects of class UISearchBar. You can obtain an instance to this class by either accessing the static Appearance property on the UISearchBar or by calling the AppearanceWhenContainedIn(Type[]) to get a UIAppearance that is context sensitive.

Constructors

UISearchBar.UISearchBarAppearance(IntPtr) UISearchBar.UISearchBarAppearance(IntPtr)

Properties

BackgroundImage BackgroundImage

The UIImage used for the search bar's background.

BarTintColor BarTintColor

The tint of the search bar background.

ScopeBarBackgroundImage ScopeBarBackgroundImage

The image used as the background for the scope bar.

Methods

BackgroundImageForBarPosition(UIBarPosition, UIBarMetrics) BackgroundImageForBarPosition(UIBarPosition, UIBarMetrics)

The UIImage used for the search bar's background, given the specified UIBarPosition and UIBarMetrics.

GetImageForSearchBarIcon(UISearchBarIcon, UIControlState) GetImageForSearchBarIcon(UISearchBarIcon, UIControlState)

The image for the specified search bar icon type and control state.

GetScopeBarButtonBackgroundImage(UIControlState) GetScopeBarButtonBackgroundImage(UIControlState)

The background image for the scope bar button for the specified state.

GetScopeBarButtonDividerImage(UIControlState, UIControlState) GetScopeBarButtonDividerImage(UIControlState, UIControlState)

The divider image used for the specified combination of left and righ t segment states.

GetScopeBarButtonTitleTextAttributes(UIControlState) GetScopeBarButtonTitleTextAttributes(UIControlState)

The background image for the scope bar button for the specified state.

GetSearchFieldBackgroundImage(UIControlState) GetSearchFieldBackgroundImage(UIControlState)

The image used as abackground of the search field for the specified state.

SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics) SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics)

Sets the background image for the specified UIBarPosition and UIBarMetrics.

SetImageforSearchBarIcon(UIImage, UISearchBarIcon, UIControlState) SetImageforSearchBarIcon(UIImage, UISearchBarIcon, UIControlState)

Sets the image to be used for the specified UISearchBarIcon type and UIControlState.

SetScopeBarButtonBackgroundImage(UIImage, UIControlState) SetScopeBarButtonBackgroundImage(UIImage, UIControlState)

Sets the image to be used as the scope bar's background for the specified UIControlState.

SetScopeBarButtonDividerImage(UIImage, UIControlState, UIControlState) SetScopeBarButtonDividerImage(UIImage, UIControlState, UIControlState)

Sets the image to be used as a divider for the specified combination of left and right states.

SetScopeBarButtonTitle(UITextAttributes, UIControlState) SetScopeBarButtonTitle(UITextAttributes, UIControlState)

Sets the attributes of the scope bar button for the specified UIControlState.

SetSearchFieldBackgroundImage(UIImage, UIControlState) SetSearchFieldBackgroundImage(UIImage, UIControlState)

Sets the background image of the search field for the specified UIControlState.

Applies to