UIButton.FromType 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.
Overloads
| Name | Description |
|---|---|
| FromType(UIButtonType) | |
| FromType(UIButtonType, UIAction) |
FromType(UIButtonType)
[Foundation.Export("buttonWithType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIButton FromType(UIKit.UIButtonType type);
[<Foundation.Export("buttonWithType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromType : UIKit.UIButtonType -> UIKit.UIButton
Parameters
- type
- UIButtonType
Returns
- Attributes
Applies to
FromType(UIButtonType, UIAction)
[Foundation.Export("buttonWithType:primaryAction:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIButton FromType(UIKit.UIButtonType buttonType, UIKit.UIAction? primaryAction);
[<Foundation.Export("buttonWithType:primaryAction:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromType : UIKit.UIButtonType * UIKit.UIAction -> UIKit.UIButton
Parameters
- buttonType
- UIButtonType
- primaryAction
- UIAction
Returns
- Attributes