UIBarButtonItem.UIBarButtonItemAppearance.SetBackgroundImage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- state
- UIControlState
- 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
- state
- UIControlState
- style
- UIBarButtonItemStyle
- barMetrics
- UIBarMetrics
- Attributes