iOS Guides | Samples

UIKit.UIPickerViewModel Class

The model for the UIPickerView.

See Also: UIPickerViewModel


[Foundation.Register("UIPickerViewModel", false)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UIPickerViewModel : NSObject, IDisposable, IUIPickerViewModel

Related content


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of UIKit.UIPickerViewModel are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Methods

GetAttributedTitle(UIPickerView, nint, nint) : NSAttributedString
Returns an attributed string that represents the title for the specified row of the specified component of pickerView.
GetComponentCount(UIPickerView) : nint
The number of components in the specified UIPickerView.
GetComponentWidth(UIPickerView, nint) : nfloat
The width of the specified component.
GetRowHeight(UIPickerView, nint) : nfloat
The height of a row in the UIPickerView.
GetRowsInComponent(UIPickerView, nint) : nint
The number of rows in the specified component.
GetTitle(UIPickerView, nint, nint) : String
Application developers implement this method to provide the title for the specified row in the specified component.
GetView(UIPickerView, nint, nint, UIView) : UIView
Selected(UIPickerView, nint, nint)
Indicates that the item at the specified row has been selected.