UIToolbar.SetBackgroundImage(UIImage, UIToolbarPosition, UIBarMetrics) 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.
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.