UIKit.UIPickerViewDelegate.GetAttributedTitle Method
Method invoked to get an attributed string for a particular component in the picker view.

Syntax

[Foundation.Export("pickerView:attributedTitleForRow:forComponent:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual Foundation.NSAttributedString GetAttributedTitle (UIPickerView pickerView, nint row, nint component)

Parameters

pickerView
Reference to the view making this request.
row
component

Returns

Should return the attributed string for the requested row and component.

Remarks

public class MyPickerViewDelegate : UIPickerViewDelegate { public override NSAttributedString GetAttributedTitle (UIPickerView pickerView, int row, int component) { UIColor color = GetColorFor (row); return new NSAttributedString ("At " + row + ", " + component, foregroundColor: color); } }

Requirements

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