Edit

Share via


CTFontDescriptor.GetAttribute(NSString) Method

Definition

Fetches a CTFontDescriptorAttribute from the descriptor.

public Foundation.NSObject GetAttribute (Foundation.NSString attribute);
member this.GetAttribute : Foundation.NSString -> Foundation.NSObject

Parameters

attribute
NSString

An NSString representing a CTFontDescriptor attribute, one of the keys in CTFontDescriptorAttributeKey.

Returns

The attribute as an NSObject.

Remarks

You can use GetAttributes() method to get all the attributes at once with a strongly typed set of properties.

Applies to