UIToolbar.GetBackgroundImage(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.
This method will return the background image that is being used by the UIToolbar for the specified postion and orientation.
[Foundation.Export("backgroundImageForToolbarPosition:barMetrics:")]
public virtual UIKit.UIImage GetBackgroundImage (UIKit.UIToolbarPosition position, UIKit.UIBarMetrics barMetrics);
abstract member GetBackgroundImage : UIKit.UIToolbarPosition * UIKit.UIBarMetrics -> UIKit.UIImage
override this.GetBackgroundImage : UIKit.UIToolbarPosition * UIKit.UIBarMetrics -> UIKit.UIImage
Parameters
- position
- UIToolbarPosition
The position of the tool bar in the view.
- barMetrics
- UIBarMetrics
Specifies the orienation of the toolbar.
Returns
Will return null
if the toolbar is using the system image, and not a custom image.
- Attributes
Remarks
This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.