Düzenle

Aracılığıyla paylaş


UIBarButtonItem.UIBarButtonItemAppearance.SetBackgroundImage Method

Definition

Overloads

SetBackgroundImage(UIImage, UIControlState, UIBarMetrics)

Specifies the background UIImage to use for the specified UIControlState and UIBarMetrics.

SetBackgroundImage(UIImage, UIControlState, UIBarButtonItemStyle, UIBarMetrics)

Specifies the background image to use for the specified UIControlState, UIBarButtonItemStyle, and UIBarMetrics.

SetBackgroundImage(UIImage, UIControlState, UIBarMetrics)

Specifies the background UIImage to use for the specified UIControlState and UIBarMetrics.

[Foundation.Export("setBackgroundImage:forState:barMetrics:")]
public virtual void SetBackgroundImage (UIKit.UIImage backgroundImage, UIKit.UIControlState state, UIKit.UIBarMetrics barMetrics);
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState * UIKit.UIBarMetrics -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState * UIKit.UIBarMetrics -> unit

Parameters

backgroundImage
UIImage
barMetrics
UIBarMetrics
Attributes

Applies to

SetBackgroundImage(UIImage, UIControlState, UIBarButtonItemStyle, UIBarMetrics)

Specifies the background image to use for the specified UIControlState, UIBarButtonItemStyle, and UIBarMetrics.

[Foundation.Export("setBackgroundImage:forState:style:barMetrics:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetBackgroundImage (UIKit.UIImage backgroundImage, UIKit.UIControlState state, UIKit.UIBarButtonItemStyle style, UIKit.UIBarMetrics barMetrics);
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState * UIKit.UIBarButtonItemStyle * UIKit.UIBarMetrics -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState * UIKit.UIBarButtonItemStyle * UIKit.UIBarMetrics -> unit

Parameters

backgroundImage
UIImage
barMetrics
UIBarMetrics
Attributes

Applies to