iOS Guides | Samples

MonoTouch.UIKit.UISearchBar.UISearchBarAppearance Class

Appearance class for objects of type UISearchBar.

See Also: UISearchBar+UISearchBarAppearance

Syntax

public class UISearchBar.UISearchBarAppearance : UIView+UIViewAppearance

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 UISearchBar.Appearance property on the UISearchBar or by calling the UISearchBar.AppearanceWhenContainedIn to get a UIAppearance that is context sensitive.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UISearchBar.UISearchBarAppearance are listed below.

See Also: UIView+UIViewAppearance

Protected Constructors

Public Properties

BackgroundImageUIImage. The UIImage used for the search bar's background.
BarTintColorUIColor. The tint of the search bar background.
ScopeBarBackgroundImageUIImage. The image used as the background for the scope bar.

Public Methods

BackgroundImageForBarMetrics(UIBarMetrics) : UIImage
The UIImage used for the search bar's background, given the specified UIBarMetrics.
BackgroundImageForBarPosition(UIBarPosition, UIBarMetrics) : UIImage
The UIImage used for the search bar's background, given the specified UIBarPosition and UIBarMetrics.
GetImageForSearchBarIcon(UISearchBarIcon, UIControlState) : UIImage
The image for the specified search bar icon type and control state.
GetScopeBarButtonBackgroundImage(UIControlState) : UIImage
The background image for the scope bar button for the specified state.
GetScopeBarButtonDividerImage(UIControlState, UIControlState) : UIImage
The divider image used for the specified combination of left and righ t segment states.
GetScopeBarButtonTitleTextAttributes(UIControlState) : UITextAttributes
The background image for the scope bar button for the specified state.
GetSearchFieldBackgroundImage(UIControlState) : UIImage
The image used as abackground of the search field for the specified state.
SetBackgroundImage(UIImage, UIBarMetrics)
Sets the background image for the specified UIBarMetrics.
SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics)
Sets the background image for the specified UIBarPosition and UIBarMetrics.
SetImageforSearchBarIcon(UIImage, UISearchBarIcon, UIControlState)
Sets the image to be used for the specified UISearchBarIcon type and UIControlState.
SetScopeBarButtonBackgroundImage(UIImage, UIControlState)
Sets the image to be used as the scope bar's background for the specified 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)
Sets the attributes of the scope bar button for the specified UIControlState.
SetSearchFieldBackgroundImage(UIImage, UIControlState)
Sets the background image of the search field for the specified UIControlState.