UIKit.UIToolbar.GetBackgroundImage Method
This method will return the background image that is being used by the UIKit.UIToolbar for the specified postion and orientation.

Syntax

[Foundation.Export("backgroundImageForToolbarPosition:barMetrics:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual UIImage GetBackgroundImage (UIToolbarPosition position, UIBarMetrics barMetrics)

Parameters

position
The position of the tool bar in the view.
barMetrics
Specifies the orienation of the toolbar.

Returns

Will return null if the toolbar is using the system image, and not a custom image.

Remarks

This member participates in the UIKit.UIAppearance styling system. See the UIToolbar.Appearance property and the UIToolbar.AppearanceWhenContainedIn method.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0