iOS Guides | Samples

UIKit.UIPickerViewModel Class

The model for the UIPickerView.

See Also: UIPickerViewModel

Syntax

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

Related content

Requirements

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

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, UIView, nint, nint) : UIView
The UIView used by the picker view for the specified row and component.
Selected(UIPickerView, nint, nint)
Indicates that the item at the specified row has been selected.