Edit

Share via


CTFontDescriptorAttributes Constructors

Definition

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.

Applies to