次の方法で共有


UINavigationBar.SetBackgroundImage メソッド

定義

オーバーロード

SetBackgroundImage(UIImage, UIBarMetrics)

の背景画像を変更します barMetrics

SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics)

barMetricsの背景画像をbarPosition設定します。

SetBackgroundImage(UIImage, UIBarMetrics)

の背景画像を変更します barMetrics

[Foundation.Export("setBackgroundImage:forBarMetrics:")]
public virtual void SetBackgroundImage(UIKit.UIImage backgroundImage, UIKit.UIBarMetrics barMetrics);
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIBarMetrics -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIBarMetrics -> unit

パラメーター

backgroundImage
UIImage

背景イメージ。消去する場合は null。

このパラメーターは、null に設定できます。

barMetrics
UIBarMetrics

ツール バーの向きを指定します。

属性

注釈

このメンバーは、スタイルシステムに UIAppearance 参加します。 Appearanceプロパティと メソッドをAppearanceWhenContainedIn(Type[])参照してください。

こちらもご覧ください

  • <xref:UIKit.UINavigationBar.GetBackgroundImage>

適用対象

SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics)

barMetricsの背景画像をbarPosition設定します。

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

パラメーター

backgroundImage
UIImage

追加する。

このパラメーターは、null に設定できます。

barPosition
UIBarPosition

ビュー内のツール バーの位置。

barMetrics
UIBarMetrics

ツール バーの向きを指定します。

属性

注釈

このメンバーは、スタイルシステムに UIAppearance 参加します。 Appearanceプロパティと メソッドをAppearanceWhenContainedIn(Type[])参照してください。

こちらもご覧ください

  • <xref:UIKit.UINavigationBar.GetBackgroundImage>

適用対象