Edytuj

Udostępnij za pośrednictwem


UIToolbar.SetBackgroundImage(UIImage, UIToolbarPosition, UIBarMetrics) Method

Definition

Sets the image that will be displayed in the background of a toolbar for a given position of the toolbar.

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

Parameters

backgroundImage
UIImage

The image that will be displayed in the background

This parameter can be null.

position
UIToolbarPosition

The position the toolbar will be in for the image to be displayed.

barMetrics
UIBarMetrics

The metrics the device will be in for the image to be displayed.

Attributes

Remarks

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

Applies to