次の方法で共有


UISearchBar.SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics) メソッド

定義

指定した位置とメトリックの背景に使用される UIImage を設定します。

[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[])参照してください。

適用対象