iOS Guides | Samples

MonoTouch.UIKit.UIButton.UIButtonAppearance Class

Appearance class for objects of type UIButton.

See Also: UIButton+UIButtonAppearance

Syntax

public class UIButton.UIButtonAppearance : UIControl+UIControlAppearance

Remarks

This appearance class is a strongly typed subclass of UIAppearance that is intended to be used with objects of class UIButton. You can obtain an instance to this class by either accessing the static UIButton.Appearance property on the UIButton or by calling the UIButton.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.UIButton.UIButtonAppearance are listed below.

See Also: UIControl+UIControlAppearance

Protected Constructors

Public Properties

[read-only]
CurrentBackgroundImageUIImage. The active UIImage displayed in the background of the UIButton.
[read-only]
CurrentImageUIImage. The current image displayed on the button. Read-only.
[read-only]
CurrentTitleColorUIColor. The current color of the title of the button. Read-only.
[read-only]
CurrentTitleShadowColorUIColor. The current color of the title shadow.

Public Methods

BackgroundImageForState(UIControlState) : UIImage
The UIImage displayed in the background for the given UIControlState.
ImageForState(UIControlState) : UIImage
The UIImage used for the specified state.
SetBackgroundImage(UIImage, UIControlState)
Sets the background image for the specified state.
SetImage(UIImage, UIControlState)
Sets the UIImage for the specified state.
SetTitleColor(UIColor, UIControlState)
Sets the color for the title in the specified state.
SetTitleShadowColor(UIColor, UIControlState)
Sets the color of the title's shadow for the specified state.
TitleColor(UIControlState) : UIColor
Gets the color for the title in the specified state.
TitleShadowColor(UIControlState) : UIColor
Gets the color for the title's shadow in the specified state.