CTFontDescriptor.WithAttributes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithAttributes(NSDictionary) | |
WithAttributes(CTFontDescriptorAttributes) |
WithAttributes(NSDictionary)
public CoreText.CTFontDescriptor WithAttributes (Foundation.NSDictionary attributes);
member this.WithAttributes : Foundation.NSDictionary -> CoreText.CTFontDescriptor
Parameters
- attributes
- NSDictionary
Returns
Applies to
WithAttributes(CTFontDescriptorAttributes)
public CoreText.CTFontDescriptor WithAttributes (CoreText.CTFontDescriptorAttributes attributes);
member this.WithAttributes : CoreText.CTFontDescriptorAttributes -> CoreText.CTFontDescriptor
Parameters
- attributes
- CTFontDescriptorAttributes
Returns
Remarks
var attributes = new CTFontDescriptorAttributes () {
FamilyName = "Times New Roman"
};
var newFontDescriptor = myDescriptor.WithAttributes (attributes);