Freigeben über


IUIPickerViewDelegate Interface

Definition

Class that receives event notifications from the UIPickerView.

[Foundation.Protocol(Name="UIPickerViewDelegate", WrapperType=typeof(UIKit.UIPickerViewDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetRowHeight", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="pickerView:rowHeightForComponent:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetComponentWidth", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="pickerView:widthForComponent:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetTitle", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr), typeof(System.IntPtr) }, ReturnType=typeof(System.String), Selector="pickerView:titleForRow:forComponent:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetView", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr), typeof(System.IntPtr), typeof(UIKit.UIView) }, ReturnType=typeof(UIKit.UIView), Selector="pickerView:viewForRow:forComponent:reusingView:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Selected", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr), typeof(System.IntPtr) }, Selector="pickerView:didSelectRow:inComponent:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetAttributedTitle", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr), typeof(System.IntPtr) }, ReturnType=typeof(Foundation.NSAttributedString), Selector="pickerView:attributedTitleForRow:forComponent:")]
public interface IUIPickerViewDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIPickerViewDelegate", WrapperType=typeof(UIKit.UIPickerViewDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetRowHeight", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="pickerView:rowHeightForComponent:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetComponentWidth", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr) }, ReturnType=typeof(System.Runtime.InteropServices.NFloat), Selector="pickerView:widthForComponent:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetTitle", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr), typeof(System.IntPtr) }, ReturnType=typeof(System.String), Selector="pickerView:titleForRow:forComponent:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetView", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr), typeof(System.IntPtr), typeof(UIKit.UIView) }, ReturnType=typeof(UIKit.UIView), Selector="pickerView:viewForRow:forComponent:reusingView:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Selected", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr), typeof(System.IntPtr) }, Selector="pickerView:didSelectRow:inComponent:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetAttributedTitle", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIPickerView), typeof(System.IntPtr), typeof(System.IntPtr) }, ReturnType=typeof(Foundation.NSAttributedString), Selector="pickerView:attributedTitleForRow:forComponent:")>]
type IUIPickerViewDelegate = 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
GetAttributedTitle(UIPickerView, IntPtr, IntPtr)

Returns an attributed string that represents the title for the specified row of the specified component of pickerView.

GetComponentWidth(UIPickerView, IntPtr)

The width of the component at the specified index.

GetRowHeight(UIPickerView, IntPtr)

The height of the component at the specified index.

GetTitle(UIPickerView, IntPtr, IntPtr)

The title of the specified component in the specified row.

GetView(UIPickerView, IntPtr, IntPtr, UIView)

The UIView of the specified component in row.

Selected(UIPickerView, IntPtr, IntPtr)

Indicates that the user has selected a row in the component.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
GetAttributedTitle(IUIPickerViewDelegate, UIPickerView, IntPtr, IntPtr)

Returns an attributed string that represents the title for the specified row of the specified component of pickerView.

GetComponentWidth(IUIPickerViewDelegate, UIPickerView, IntPtr)

The width of the component at the specified index.

GetRowHeight(IUIPickerViewDelegate, UIPickerView, IntPtr)

The height of the component at the specified index.

GetTitle(IUIPickerViewDelegate, UIPickerView, IntPtr, IntPtr)

The title of the specified component in the specified row.

GetView(IUIPickerViewDelegate, UIPickerView, IntPtr, IntPtr, UIView)

The UIView of the specified component in row.

Selected(IUIPickerViewDelegate, UIPickerView, IntPtr, IntPtr)

Indicates that the user has selected a row in the component.

Applies to

See also