UIPickerViewDelegate.GetAttributedTitle(UIPickerView, nint, nint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Method invoked to get an attributed string for a particular component in the picker view.
[Foundation.Export("pickerView:attributedTitleForRow:forComponent:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSAttributedString GetAttributedTitle (UIKit.UIPickerView pickerView, nint row, nint component);
abstract member GetAttributedTitle : UIKit.UIPickerView * nint * nint -> Foundation.NSAttributedString
override this.GetAttributedTitle : UIKit.UIPickerView * nint * nint -> Foundation.NSAttributedString
Parameters
- pickerView
- UIPickerView
Reference to the view making this request.
- row
- System.System.IntPtr System.nativeint
- component
- System.System.IntPtr System.nativeint
Returns
Should return the attributed string for the requested row and component.
- Attributes
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); } }