CTFontDescriptor.WithAttributes 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WithAttributes(NSDictionary) | |
WithAttributes(CTFontDescriptorAttributes) |
WithAttributes(NSDictionary)
public CoreText.CTFontDescriptor WithAttributes (Foundation.NSDictionary attributes);
member this.WithAttributes : Foundation.NSDictionary -> CoreText.CTFontDescriptor
参数
- attributes
- NSDictionary
返回
适用于
WithAttributes(CTFontDescriptorAttributes)
public CoreText.CTFontDescriptor WithAttributes (CoreText.CTFontDescriptorAttributes attributes);
member this.WithAttributes : CoreText.CTFontDescriptorAttributes -> CoreText.CTFontDescriptor
参数
- attributes
- CTFontDescriptorAttributes
返回
注解
var attributes = new CTFontDescriptorAttributes () {
FamilyName = "Times New Roman"
};
var newFontDescriptor = myDescriptor.WithAttributes (attributes);