CTFontDescriptor.WithAttributes 方法

定义

重载

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

参数

返回

注解

var attributes = new CTFontDescriptorAttributes () {
	FamilyName = "Times New Roman"
};

var newFontDescriptor = myDescriptor.WithAttributes (attributes);

适用于