CTFontDescriptor.GetAttribute(NSString) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从描述符中提取 CTFontDescriptorAttribute。
public Foundation.NSObject GetAttribute (Foundation.NSString attribute);
member this.GetAttribute : Foundation.NSString -> Foundation.NSObject
参数
- attribute
- NSString
一个 NSString,表示 CTFontDescriptor 属性,这是 中的 CTFontDescriptorAttributeKey键之一。
返回
作为 NSObject 的属性。
注解
可以使用 GetAttributes() 方法通过一组强类型属性一次获取所有属性。