UIButton.SetBackgroundImage(UIImage, UIControlState) 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.
Sets the background image for the specified button state.
[Foundation.Export("setBackgroundImage:forState:")]
public virtual void SetBackgroundImage (UIKit.UIImage image, UIKit.UIControlState forState);
abstract member SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit
override this.SetBackgroundImage : UIKit.UIImage * UIKit.UIControlState -> unit
Parameters
- forState
- UIControlState
- Attributes
Remarks
This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.