Condividi tramite


IUIPickerViewDataSource Interface

Definition

Base class for models that provide data to a UIPickerView object.

[Foundation.Protocol(Name="UIPickerViewDataSource", WrapperType=typeof(UIKit.UIPickerViewDataSourceWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetComponentCount", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView) }, ReturnType=typeof(System.IntPtr), Selector="numberOfComponentsInPickerView:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetRowsInComponent", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr) }, ReturnType=typeof(System.IntPtr), Selector="pickerView:numberOfRowsInComponent:")]
public interface IUIPickerViewDataSource : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIPickerViewDataSource", WrapperType=typeof(UIKit.UIPickerViewDataSourceWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetComponentCount", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView) }, ReturnType=typeof(System.IntPtr), Selector="numberOfComponentsInPickerView:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetRowsInComponent", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr) }, ReturnType=typeof(System.IntPtr), Selector="pickerView:numberOfRowsInComponent:")>]
type IUIPickerViewDataSource = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
GetComponentCount(UIPickerView)

Returns the number of components.

GetRowsInComponent(UIPickerView, IntPtr)

The number of rows in the specified component.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to

See also