Поделиться через


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[]) метод .

Применяется к