UIKit.UIBarButtonItem.GetBackgroundVerticalPositionAdjustment Method
The vertical offset of the background image.

Syntax

[Foundation.Export("backgroundVerticalPositionAdjustmentForBarMetrics:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual nfloat GetBackgroundVerticalPositionAdjustment (UIBarMetrics forBarMetrics)

Parameters

forBarMetrics
The bar metrics to return the vertical background image offset for.

Returns

The vertical offset of the background image for the specified bar metrics. Used for vertical centering of image for bordered buttons.

Remarks

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

Requirements

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