CTFontDescriptor.GetAttribute(NSString) 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.
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.