Szerkesztés

Megosztás a következőn keresztül:


UITextField.AttributedPlaceholder Property

Definition

Sets the contents of the placeholder as an attributed string.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSAttributedString AttributedPlaceholder { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("attributedPlaceholder", ObjCRuntime.ArgumentSemantic.Copy)] get; [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setAttributedPlaceholder:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.AttributedPlaceholder : Foundation.NSAttributedString with get, set

Property Value

This value can be null.

Attributes

Remarks

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

Applies to