편집

다음을 통해 공유


UINavigationBar.GetBackgroundImage Method

Definition

Overloads

GetBackgroundImage(UIBarMetrics)

The background used when the UINavigationBar has the specified forBarMetrics.

GetBackgroundImage(UIBarPosition, UIBarMetrics)

The background image used when the bar is in the specified barPosition and has the metrics specified by barMetrics.

GetBackgroundImage(UIBarMetrics)

The background used when the UINavigationBar has the specified forBarMetrics.

[Foundation.Export("backgroundImageForBarMetrics:")]
public virtual UIKit.UIImage GetBackgroundImage (UIKit.UIBarMetrics forBarMetrics);
abstract member GetBackgroundImage : UIKit.UIBarMetrics -> UIKit.UIImage
override this.GetBackgroundImage : UIKit.UIBarMetrics -> UIKit.UIImage

Parameters

forBarMetrics
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.

Applies to

GetBackgroundImage(UIBarPosition, UIBarMetrics)

The background image used when the bar is in the specified barPosition and has the metrics specified by barMetrics.

[Foundation.Export("backgroundImageForBarPosition:barMetrics:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIImage GetBackgroundImage (UIKit.UIBarPosition barPosition, UIKit.UIBarMetrics barMetrics);
abstract member GetBackgroundImage : UIKit.UIBarPosition * UIKit.UIBarMetrics -> UIKit.UIImage
override this.GetBackgroundImage : UIKit.UIBarPosition * UIKit.UIBarMetrics -> UIKit.UIImage

Parameters

barPosition
UIBarPosition

The position of the tool bar in the view.

barMetrics
UIBarMetrics

Specifies the orientation 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.

Applies to