Editar

Compartilhar via


UISegmentedControl.GetBackgroundImage(UIControlState, UIBarMetrics) Method

Definition

Used to retrieve the background image for the segmented control for a specified control state and bar metrics.

[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

Parameters

barMetrics
UIBarMetrics

Returns

The UIImage used for the background image.

Attributes

Remarks

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to