UIKit.UITextField.AttributedPlaceholder Property
Sets the contents of the placeholder as an attributed string.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
[get: Foundation.Export("attributedPlaceholder")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
[set: Foundation.Export("setAttributedPlaceholder:")]
[set: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual Foundation.NSAttributedString AttributedPlaceholder { get; set; }

Value

This value can be null.

Remarks

C# Example

myLogin.AttributedPlaceholder = new NSAttributedString (
    "Enter your credentials",
    font: UIFont.FromName ("HoeflerText-Regular", 24.0f),
    foregroundColor: UIColor.Red,
    strokeWidth: 4
);
	

Requirements

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