iOS Guides | Samples

MonoTouch.UIKit.UIPickerViewModel Class

The model for the UIPickerView.

See Also: UIPickerViewModel

Syntax

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

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIPickerViewModel are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
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, Int32, Int32) : NSAttributedString
Returns an attributed string that represents the title for the specified row of the specified component of pickerView.
GetComponentCount(UIPickerView) : Int32
The number of components in the specified UIPickerView.
GetComponentWidth(UIPickerView, Int32) : Single
The width of the specified component.
GetRowHeight(UIPickerView, Int32) : Single
The height of a row in the UIPickerView.
GetRowsInComponent(UIPickerView, Int32) : Int32
The number of rows in the specified component.
GetTitle(UIPickerView, Int32, Int32) : String
Application developers implement this method to provide the title for the specified row in the specified component.
GetView(UIPickerView, Int32, Int32, UIView) : UIView
The UIView used by the picker view for the specified row and component.
Selected(UIPickerView, Int32, Int32)
Indicates that the item at the specified row has been selected.