Edytuj

Udostępnij za pośrednictwem


UIPickerViewDelegate.GetAttributedTitle(UIPickerView, nint, nint) Method

Definition

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); } }

Applies to