CTFontDescriptor.GetAttribute(NSString) 方法

定义

从描述符中提取 CTFontDescriptorAttribute。

public Foundation.NSObject GetAttribute (Foundation.NSString attribute);
member this.GetAttribute : Foundation.NSString -> Foundation.NSObject

参数

attribute
NSString

一个 NSString,表示 CTFontDescriptor 属性,这是 中的 CTFontDescriptorAttributeKey键之一。

返回

作为 NSObject 的属性。

注解

可以使用 GetAttributes() 方法通过一组强类型属性一次获取所有属性。

适用于