Share via


UIBarButtonItem.GetBackgroundImage Metodo

Definizione

Overload

GetBackgroundImage(UIControlState, UIBarMetrics)

Immagine di sfondo per il pulsante.

GetBackgroundImage(UIControlState, UIBarButtonItemStyle, UIBarMetrics)

UIImage usato come sfondo da UIBarButtonItem.

GetBackgroundImage(UIControlState, UIBarMetrics)

Immagine di sfondo per il pulsante.

[Foundation.Export("backgroundImageForState:barMetrics:")]
public virtual UIKit.UIImage GetBackgroundImage (UIKit.UIControlState state, UIKit.UIBarMetrics barMetrics);
abstract member GetBackgroundImage : UIKit.UIControlState * UIKit.UIBarMetrics -> UIKit.UIImage
override this.GetBackgroundImage : UIKit.UIControlState * UIKit.UIBarMetrics -> UIKit.UIImage

Parametri

state
UIControlState

Stato del controllo per cui restituire l'immagine di sfondo.

barMetrics
UIBarMetrics

Metriche della barra per cui restituire l'immagine di sfondo.

Restituisce

Imnage in background per le metriche dello stato e della barra specificate.

Attributi

Commenti

Questo membro partecipa al sistema di UIAppearance stili. Vedere la Appearance proprietà e il AppearanceWhenContainedIn(Type[]) metodo .

Si applica a

GetBackgroundImage(UIControlState, UIBarButtonItemStyle, UIBarMetrics)

UIImage usato come sfondo da UIBarButtonItem.

[Foundation.Export("backgroundImageForState:style:barMetrics:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIImage GetBackgroundImage (UIKit.UIControlState state, UIKit.UIBarButtonItemStyle style, UIKit.UIBarMetrics barMetrics);
abstract member GetBackgroundImage : UIKit.UIControlState * UIKit.UIBarButtonItemStyle * UIKit.UIBarMetrics -> UIKit.UIImage
override this.GetBackgroundImage : UIKit.UIControlState * UIKit.UIBarButtonItemStyle * UIKit.UIBarMetrics -> UIKit.UIImage

Parametri

barMetrics
UIBarMetrics

Restituisce

Attributi

Commenti

Questo membro partecipa al sistema di UIAppearance stili. Vedere la Appearance proprietà e il AppearanceWhenContainedIn(Type[]) metodo .

Si applica a