UIRefreshControl.AttributedTitle 属性

定义

要作为特性化字符串显示的刷新控件的文本。

public virtual Foundation.NSAttributedString AttributedTitle { [Foundation.Export("attributedTitle", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setAttributedTitle:", ObjCRuntime.ArgumentSemantic.Strong)] set; }
member this.AttributedTitle : Foundation.NSAttributedString with get, set

属性值

此值可为 null

属性

注解

void SetupRefresh (UIRefreshControl refreshControl)
{
    refreshControl.AttributedTitle = new NSAttributedString ("Pull to Refresh", 
    	font: UIFont.FromName ("ChalkboardSE-Bold", 24.0f),
	foregroundColor: UIColor.Red);
}

此成员参与 UIAppearance 样式设置系统。 Appearance请参阅 属性和 AppearanceWhenContainedIn(Type[]) 方法。

适用于