UINavigationBar.SetBackgroundImage UINavigationBar.SetBackgroundImage Method

Definition

Overloads

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

Changes the background image for the barMetrics.

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

Sets the background image for the barPosition and barMetrics.

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

Changes the background image for the barMetrics.

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

Parameters

backgroundImage
UIImage UIImage

The background image, or null to clear it.

This parameter can be null.

barMetrics
UIBarMetrics UIBarMetrics

Specifies the orientation of the toolbar.

Remarks

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

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

Sets the background image for the barPosition and barMetrics.

[Foundation.Export("setBackgroundImage:forBarPosition:barMetrics:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetBackgroundImage (UIKit.UIImage backgroundImage, UIKit.UIBarPosition barPosition, UIKit.UIBarMetrics barMetrics);
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIBarPosition * UIKit.UIBarMetrics -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIBarPosition * UIKit.UIBarMetrics -> unit

Parameters

backgroundImage
UIImage UIImage

To be added.

This parameter can be null.

barPosition
UIBarPosition UIBarPosition

The position of the tool bar in the view.

barMetrics
UIBarMetrics UIBarMetrics

Specifies the orientation of the toolbar.

Remarks

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to