CTFontDescriptorAttributes Constructors
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
CTFontDescriptorAttributes() |
Default constructor. |
CTFontDescriptorAttributes(NSDictionary) |
Creates a strongly typed CTFontDescriptorAttributes from a weakly typed NSDictionary. |
CTFontDescriptorAttributes()
Default constructor.
public CTFontDescriptorAttributes ();
Remarks
Typically used to initialize objects with the C# initializer syntax.
var attributes = new CTFontDescriptorAttributes () {
FamilyName = "Times New Roman"
};
var fontDescriptor = new CTFontDescriptor (attributes);
Applies to
CTFontDescriptorAttributes(NSDictionary)
Creates a strongly typed CTFontDescriptorAttributes from a weakly typed NSDictionary.
public CTFontDescriptorAttributes (Foundation.NSDictionary dictionary);
new CoreText.CTFontDescriptorAttributes : Foundation.NSDictionary -> CoreText.CTFontDescriptorAttributes
Parameters
- dictionary
- NSDictionary
An NSDictionary containing CTFontDescriptorAttributes keys and values.