UISegmentedControl.GetBackgroundImage(UIControlState, UIBarMetrics) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- state
- UIControlState
- 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.